# CVE-2025-22223: Spring Security Vulnerable to Authorization Bypass via Security Annotations

- Severity: Medium 5.3 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.51%, higher than 44% of CVEs (2026-12-01)
- Published: 2025-03-24T17:42:49.634Z
- Modified: 2026-08-07T08:12:11.197Z
- Also known as: GHSA-hh3m-g4qj-4835
- Weaknesses: CWE-290
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- 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

(As written by CVE List.)

## Affected

- Spring Spring Security: 6.4.0-6.4.3
- org.springframework.security:spring-security-core (Maven): from 6.4.0 before 6.4.4

## Every score

- vmware: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`

## 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)

## Sources

- CVE List: [CVE-2025-22223](https://www.cve.org/CVERecord?id=CVE-2025-22223), CVE Terms of Use, modified 2025-03-24
- GitHub Advisory Database: [GHSA-hh3m-g4qj-4835](https://github.com/advisories/GHSA-hh3m-g4qj-4835), CC-BY-4.0, modified 2026-08-07
- NVD: [CVE-2025-22223](https://nvd.nist.gov/vuln/detail/CVE-2025-22223), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-22223 · Whole record: https://cve.day/CVE-2025-22223.json · Rebuilt by cve.day 2026-11-25T22:58:55.473Z
