CVE-2025-41248 Details
Description
The Spring Security annotation detection mechanism may not correctly resolve annotations on methods within type hierarchies with a parameterized super type with unbounded generics. This can be an issue when using @PreAuthorize and other method security annotations, resulting in an authorization bypass. Your application may be affected by this if you are using Spring Security's @EnableMethodSecurity feature. You are not affected by this if you are not using @EnableMethodSecurity or if you do not use security annotations on methods in generic superclasses or generic interfaces. This CVE is published in conjunction with CVE-2025-41249 https://spring.io/security/cve-2025-41249 .
A vulnerability exists in Spring Security versions 6.4.0 through 6.4.9 and 6.5.0 through 6.5.3, where the annotation detection mechanism may fail to properly resolve annotations on methods within type hierarchies that have a parameterized super type with unbounded generics. This issue can lead to an authorization bypass when using method security annotations such as @PreAuthorize. The vulnerability affects applications that utilize Spring Security's @EnableMethodSecurity feature and apply security annotations on methods in generic superclasses or interfaces.
Users of affected versions should upgrade to Spring Security 6.4.10 or 6.5.4. If an upgrade is not possible, ensure that all secured target methods are declared in their target class.
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 Sep 16, 2025CISA-ADP
Assessed Sep 16, 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-41248 | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-289 | Authentication Bypass by Alternate Name | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| Spring Security | >= 6.4.0, <= 6.4.9 (semver) >= 6.5.0, <= 6.5.3 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 16, 2025 | CVE Modified | CISA-ADP |
| Sep 16, 2025 | New CVE Received | [email protected] |
Volerion