Authentication Bypass by Alternate Name in org.springframework.security:spring-security-core
CVE-2025-41248
- org.springframework.security:spring-security-core
Summary
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 `@PreAuthorizeand` and other method security annotations, resulting in an authorization bypass. Your application may be affected by this if you are using Spring Security's `@EnableMethodSecurityfeature`. 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. This issue affects org.springframework.security:spring-security-core version 6.4.4 through 6.4.9, 6.5.0-M1 through 6.5.3, 7.0.0-M1, and 7.0.0-M2.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- HIGH
- NONE
CWE-289 - Authentication Bypass by Alternate Name
The software performs authentication based on the name of a resource being accessed, or the name of the actor performing the access, but it does not properly check all possible names for that resource or actor.
References
Advisory Timeline
- Published