CVE
CVE-2025-41249
Spring Framework annotation detection mechanism may result in improper authorization
Severity
High
Base CVSS
7.5
Fixed in
6.2.11,7.0.0-M9,6.1.8-r5,6.1.8-r7,2.5.0-r11,3.31.0-r4,3.31.0-r5,2.528-r0,2.504.3-r5,2.516.2-r1,3.1.0-r0,4.2-r6
Description
The Spring Framework 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 if such annotations are used for authorization decisions.
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-41248 https://spring.io/security/cve-2025-41248 .
Severity scores
Source
Severity
Base score
CVSS version
Score vector
NVD
High
7.5
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
OSV
0
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Endor Labs
7.5
3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Required action
Known ransomware campaign use
References
https://nvd.nist.gov/vuln/detail/CVE-2025-41249, https://github.com/spring-projects/spring-framework/issues/35342, https://github.com/spring-projects/spring-framework/commit/6d710d482a6785b069e35022e81758953afc21ff, https://github.com/spring-projects/spring-framework, https://github.com/spring-projects/spring-framework/releases/tag/v6.2.11, https://spring.io/security/cve-2025-41249
Basic information
Base CVSS
7.5
EPSS probability
0.0
EPSS percentile
0.42891
Introduced version
5.2.0.RELEASE,6.1.0,7.0.0-M1,5.1.0.RELEASE,0
Fix available
6.2.11,7.0.0-M9,6.1.8-r5,6.1.8-r7,2.5.0-r11,3.31.0-r4,3.31.0-r5,2.528-r0,2.504.3-r5,2.516.2-r1,3.1.0-r0,4.2-r6
Endor Patches
Fix critical vulnerabilities instantly
Secure your app without upgrading: detect a compatible fix, apply safe remediation, and ship it in a single pull request.
Fix without upgradingGet a demo of Endor Labs today.