CVE-2025-22223 Details
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
A vulnerability in Spring Security versions 6.4.0 to 6.4.3 may lead to an authorization bypass by incorrectly handling method security annotations on parameterized types or methods. This issue arises when '@EnableMethodSecurity' is used, and method security annotations are placed on parameterized superclasses, interfaces, or overridden methods without corresponding annotations on the target methods. In such cases, the target methods might be invoked without proper authorization.
Users of affected Spring Security versions should upgrade to version 6.4.4. If an upgrade is not possible, ensure that method security annotations are applied to target methods rather than their parameterized ancestors, or publish an 'AuthorizationManagerBeforeMethodInterceptor' that correctly identifies annotations on parameterized types.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Mar 24, 2025CISA-ADP
Assessed Mar 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://spring.io/security/cve-2025-22223 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-290 | Authentication Bypass by Spoofing | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Spring Security | >= 6.4.0, <= 6.4.3 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Mar 24, 2025 | New CVE Received | [email protected] |
Volerion