NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2025-41248: Spring Security annotation detection mechanism has authorization bypass

highCVSS 3.1 7.5GHSA-8v5q-rhf3-jphm

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.

Published Sep 16, 2025

Affected packages

org.springframework.security:spring-security-core

Ecosystem
Maven
Affected
>= 6.4.0, < 6.4.10
Fixed in
6.4.10
Check
mvn dependency:tree -Dincludes=org.springframework.security:spring-security-core

org.springframework.security:spring-security-core

Ecosystem
Maven
Affected
>= 6.5.0, < 6.5.4
Fixed in
6.5.4
Check
mvn dependency:tree -Dincludes=org.springframework.security:spring-security-core

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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 .

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries