CVE-2025-22223
MEDIUM 5.3CVSS 3.1Spring Security Vulnerable to Authorization Bypass via Security Annotations
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
- Published
- 24 Mar 2025
- Last modified
- 7 Aug 2026
- Assigned by
- security@vmware.com
- NVD status
- Deferred
- Weakness
- CWE-290
- Also known as
- GHSA-hh3m-g4qj-4835
- Sources
- NVDJSONOSV GHSA-hh3m-g4qj-4835JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.springframework.security:spring-security-core | >= 6.4.0, < 6.4.4 | 6.4.4 |
References
- https://spring.io/security/cve-2025-22223 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-22223 · ADVISORY
- https://github.com/spring-projects/spring-security/commit/dc2e1af2dab8ef81cd4edd25b56a2babeaab8cf9 · WEB
- https://github.com/spring-projects/spring-security · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 24 Mar 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 24 Mar 2025)