Skip to content
OpenAdvisories
Medium · 5.3 Public exploit CVE-2025-22223 EUVD-2025-7998GHSA-hh3m-g4qj-4835

Spring Security Vulnerable to Authorization Bypass via Security Annotations

Published Mar 24, 2025 · Updated Mar 24, 2025 · Assigned by vmware

Description

Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass. 

You are not affected if you are not using @EnableMethodSecurity, or
you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods

Affected products

VendorProductAffectedFixed
Spring Spring Security 6.4.0-6.4.3 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.security:spring-security-core >= 6.4.0, < 6.4.4 6.4.4 GHSA-hh3m-g4qj-4835

Advisories 1

References