CVE-2025-22223
Spring 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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used 5.3
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
- Record
CVE-2025-22223- 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 - Weakness
- CWE-290
- Updated
- 2026-11-02
EUVDEUVD-2025-7998 5.3
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
- Record
EUVD-2025-7998- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-hh3m-g4qj-4835 5.3
Spring 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
- Record
GHSA-hh3m-g4qj-4835- 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 - Weakness
- CWE-290
- Updated
- 2026-11-02
NVD 5.3
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
- Record
CVE-2025-22223- 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 - Weakness
- CWE-290
- Updated
- 2026-11-02
OSVGHSA-hh3m-g4qj-4835 5.3
Spring 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
- Record
GHSA-hh3m-g4qj-4835- 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 - Weakness
- CWE-290
- Updated
- 2026-11-02
OSVCLSA-2026-1775694712No score
TuxCare security update for org.springframework.security (5 CVEs)
TuxCare rebuilt 4 org.springframework.security packages to address 5 CVEs. Fixed in 6.4.3-tuxcare.1.
- Record
CLSA-2026-1775694712- Updated
- 2026-11-02
Show 11 moreShow less
OSVCLSA-2026-1793733149No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 6.0.8-tuxcare.6.
- Record
CLSA-2026-1793733149- Updated
- 2026-11-04
OSVCLSA-2026-1793887410No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 6.2.8-tuxcare.7.
- Record
CLSA-2026-1793887410- Updated
- 2026-11-06
OSVCLSA-2026-1793890661No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 6.3.10-tuxcare.22.
- Record
CLSA-2026-1793890661- Updated
- 2026-11-06
OSVCLSA-2026-1793892644No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 6.2.7-tuxcare.9.
- Record
CLSA-2026-1793892644- Updated
- 2026-11-06
OSVCLSA-2026-1794160019No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 5.7.12-tuxcare.13.
- Record
CLSA-2026-1794160019- Updated
- 2026-11-09
OSVCLSA-2026-1794175722No score
TuxCare security update for org.springframework.security (14 CVEs)
TuxCare rebuilt 6 org.springframework.security packages to address 14 CVEs. Fixed in 5.6.5-tuxcare.2.
- Record
CLSA-2026-1794175722- Updated
- 2026-11-09
OSVCLSA-2026-1794178065No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 5.6.10-tuxcare.12.
- Record
CLSA-2026-1794178065- Updated
- 2026-11-09
OSVCLSA-2026-1794179083No score
TuxCare security update for org.springframework.security (2 CVEs)
TuxCare rebuilt 2 org.springframework.security packages to address 2 CVEs. Fixed in 5.6.7-tuxcare.5.
- Record
CLSA-2026-1794179083- Updated
- 2026-11-09
OSVCLSA-2026-1794183984No score
TuxCare security update for org.springframework.security (1 CVE)
TuxCare rebuilt 2 org.springframework.security packages to address 1 CVE. Fixed in 5.7.7-tuxcare.4.
- Record
CLSA-2026-1794183984- Updated
- 2026-11-09
OSVCLSA-2026-1794189026No score
TuxCare security update for org.springframework.security (14 CVEs)
TuxCare rebuilt 6 org.springframework.security packages to address 14 CVEs. Fixed in 5.7.6-tuxcare.2.
- Record
CLSA-2026-1794189026- Updated
- 2026-11-09
OSVCLSA-2026-1794189800No score
TuxCare security update for org.springframework.security (14 CVEs)
TuxCare rebuilt 7 org.springframework.security packages to address 14 CVEs. Fixed in 6.1.5-tuxcare.3.
- Record
CLSA-2026-1794189800- Updated
- 2026-11-09
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreMaven | 6.4.0 up to 6.4.4 | 6.4.4 |
org.springframework.security:spring-security-configTuxCare:Maven From an advisory covering 5 CVEs | 6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-coreTuxCare:Maven From an advisory covering 5 CVEs | 6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-cryptoTuxCare:Maven From an advisory covering 5 CVEs | 6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-webTuxCare:Maven From an advisory covering 5 CVEs | 6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-configTuxCare:Maven | 6.0.8 up to 6.0.8-tuxcare.6, plus listed versions 6.0.8-tuxcare.16.0.8-tuxcare.26.0.8-tuxcare.36.0.8-tuxcare.46.0.8-tuxcare.5 | 6.0.8-tuxcare.6 |
org.springframework.security:spring-security-coreTuxCare:Maven | 6.0.8 up to 6.0.8-tuxcare.6, plus listed versions 6.0.8-tuxcare.16.0.8-tuxcare.26.0.8-tuxcare.36.0.8-tuxcare.46.0.8-tuxcare.5 | 6.0.8-tuxcare.6 |
org.springframework.security:spring-security-configTuxCare:Maven | 6.2.8 up to 6.2.8-tuxcare.7, plus listed versions 6.2.8-tuxcare.16.2.8-tuxcare.26.2.8-tuxcare.36.2.8-tuxcare.46.2.8-tuxcare.56.2.8-tuxcare.6 | 6.2.8-tuxcare.7 |
org.springframework.security:spring-security-coreTuxCare:Maven | 6.2.8 up to 6.2.8-tuxcare.7, plus listed versions 6.2.8-tuxcare.16.2.8-tuxcare.26.2.8-tuxcare.36.2.8-tuxcare.46.2.8-tuxcare.56.2.8-tuxcare.6 | 6.2.8-tuxcare.7 |
org.springframework.security:spring-security-configTuxCare:Maven | 6.3.10 up to 6.3.10-tuxcare.22, plus listed versions 6.3.10-tuxcare.16.3.10-tuxcare.106.3.10-tuxcare.116.3.10-tuxcare.126.3.10-tuxcare.13 Show 16 moreShow less6.3.10-tuxcare.146.3.10-tuxcare.156.3.10-tuxcare.166.3.10-tuxcare.176.3.10-tuxcare.186.3.10-tuxcare.196.3.10-tuxcare.26.3.10-tuxcare.206.3.10-tuxcare.216.3.10-tuxcare.36.3.10-tuxcare.46.3.10-tuxcare.56.3.10-tuxcare.66.3.10-tuxcare.76.3.10-tuxcare.86.3.10-tuxcare.9 | 6.3.10-tuxcare.22 |
Show 31 moreShow less
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreTuxCare:Maven | 6.3.10 up to 6.3.10-tuxcare.22, plus listed versions 6.3.10-tuxcare.16.3.10-tuxcare.106.3.10-tuxcare.116.3.10-tuxcare.126.3.10-tuxcare.13 Show 16 moreShow less6.3.10-tuxcare.146.3.10-tuxcare.156.3.10-tuxcare.166.3.10-tuxcare.176.3.10-tuxcare.186.3.10-tuxcare.196.3.10-tuxcare.26.3.10-tuxcare.206.3.10-tuxcare.216.3.10-tuxcare.36.3.10-tuxcare.46.3.10-tuxcare.56.3.10-tuxcare.66.3.10-tuxcare.76.3.10-tuxcare.86.3.10-tuxcare.9 | 6.3.10-tuxcare.22 |
org.springframework.security:spring-security-configTuxCare:Maven | 6.2.7 up to 6.2.7-tuxcare.9, plus listed versions 6.2.7-tuxcare.16.2.7-tuxcare.26.2.7-tuxcare.36.2.7-tuxcare.46.2.7-tuxcare.56.2.7-tuxcare.66.2.7-tuxcare.76.2.7-tuxcare.8 | 6.2.7-tuxcare.9 |
org.springframework.security:spring-security-coreTuxCare:Maven | 6.2.7 up to 6.2.7-tuxcare.9, plus listed versions 6.2.7-tuxcare.16.2.7-tuxcare.26.2.7-tuxcare.36.2.7-tuxcare.46.2.7-tuxcare.56.2.7-tuxcare.66.2.7-tuxcare.76.2.7-tuxcare.8 | 6.2.7-tuxcare.9 |
org.springframework.security:spring-security-configTuxCare:Maven | 5.7.12 up to 5.7.12-tuxcare.13, plus listed versions 5.7.12-tuxcare.15.7.12-tuxcare.105.7.12-tuxcare.115.7.12-tuxcare.125.7.12-tuxcare.2 Show 7 moreShow less5.7.12-tuxcare.35.7.12-tuxcare.45.7.12-tuxcare.55.7.12-tuxcare.65.7.12-tuxcare.75.7.12-tuxcare.85.7.12-tuxcare.9 | 5.7.12-tuxcare.13 |
org.springframework.security:spring-security-coreTuxCare:Maven | 5.7.12 up to 5.7.12-tuxcare.13, plus listed versions 5.7.12-tuxcare.15.7.12-tuxcare.105.7.12-tuxcare.115.7.12-tuxcare.125.7.12-tuxcare.2 Show 7 moreShow less5.7.12-tuxcare.35.7.12-tuxcare.45.7.12-tuxcare.55.7.12-tuxcare.65.7.12-tuxcare.75.7.12-tuxcare.85.7.12-tuxcare.9 | 5.7.12-tuxcare.13 |
org.springframework.security:spring-security-configTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-coreTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-cryptoTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-ldapTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-saml2-service-providerTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-webTuxCare:Maven From an advisory covering 14 CVEs | 5.6.5 up to 5.6.5-tuxcare.2, plus listed versions 5.6.5-tuxcare.1 | 5.6.5-tuxcare.2 |
org.springframework.security:spring-security-configTuxCare:Maven | 5.6.10 up to 5.6.10-tuxcare.12, plus listed versions 5.6.10-tuxcare.15.6.10-tuxcare.105.6.10-tuxcare.115.6.10-tuxcare.25.6.10-tuxcare.3 Show 6 moreShow less5.6.10-tuxcare.45.6.10-tuxcare.55.6.10-tuxcare.65.6.10-tuxcare.75.6.10-tuxcare.85.6.10-tuxcare.9 | 5.6.10-tuxcare.12 |
org.springframework.security:spring-security-coreTuxCare:Maven | 5.6.10 up to 5.6.10-tuxcare.12, plus listed versions 5.6.10-tuxcare.15.6.10-tuxcare.105.6.10-tuxcare.115.6.10-tuxcare.25.6.10-tuxcare.3 Show 6 moreShow less5.6.10-tuxcare.45.6.10-tuxcare.55.6.10-tuxcare.65.6.10-tuxcare.75.6.10-tuxcare.85.6.10-tuxcare.9 | 5.6.10-tuxcare.12 |
org.springframework.security:spring-security-configTuxCare:Maven From an advisory covering 2 CVEs | 5.6.7 up to 5.6.7-tuxcare.5, plus listed versions 5.6.7-tuxcare.15.6.7-tuxcare.25.6.7-tuxcare.35.6.7-tuxcare.4 | 5.6.7-tuxcare.5 |
org.springframework.security:spring-security-coreTuxCare:Maven From an advisory covering 2 CVEs | 5.6.7 up to 5.6.7-tuxcare.5, plus listed versions 5.6.7-tuxcare.15.6.7-tuxcare.25.6.7-tuxcare.35.6.7-tuxcare.4 | 5.6.7-tuxcare.5 |
org.springframework.security:spring-security-configTuxCare:Maven | 5.7.7 up to 5.7.7-tuxcare.4, plus listed versions 5.7.7-tuxcare.15.7.7-tuxcare.25.7.7-tuxcare.3 | 5.7.7-tuxcare.4 |
org.springframework.security:spring-security-coreTuxCare:Maven | 5.7.7 up to 5.7.7-tuxcare.4, plus listed versions 5.7.7-tuxcare.15.7.7-tuxcare.25.7.7-tuxcare.3 | 5.7.7-tuxcare.4 |
org.springframework.security:spring-security-configTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-coreTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-cryptoTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-ldapTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-saml2-service-providerTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-webTuxCare:Maven From an advisory covering 14 CVEs | 5.7.6 up to 5.7.6-tuxcare.2, plus listed versions 5.7.6-tuxcare.1 | 5.7.6-tuxcare.2 |
org.springframework.security:spring-security-configTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-coreTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-cryptoTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-ldapTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-oauth2-joseTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-saml2-service-providerTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-webTuxCare:Maven From an advisory covering 14 CVEs | 6.1.5 up to 6.1.5-tuxcare.3, plus listed versions 6.1.5-tuxcare.16.1.5-tuxcare.2 | 6.1.5-tuxcare.3 |
org.springframework.security:spring-security-coreMaven | 6.4.0 up to 6.4.4, plus listed versions 6.4.16.4.26.4.3 | 6.4.4 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | 1ucky7/cve-2025-22223-demo-1.0.0 | 2025-04-03 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases | OSV | |
| affected, aliases | OSV | |
| affected, aliases | ||
| affected, aliases | OSV | |
| affected | ||
| affected, aliases, facts | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-22223 is a medium vulnerability (CVSS 5.3) in Spring Security, published March 24, 2025. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.51%, the 43rd percentile. Fixed in org.springframework.security:spring-security-core 6.4.4.