CVE-2025-41249: Spring Framework Annotation Detection Vulnerability
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 .
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.springframework:spring-coreto a version that resolves this vulnerability.Fixed in 6.2.11
Event History
Frequently Asked Questions
What is the severity of CVE-2025-41249?
The severity of CVE-2025-41249 is considered high due to potential authorization bypass issues.
How do I fix CVE-2025-41249?
To fix CVE-2025-41249, ensure that you are using the latest version of the Spring Framework that addresses this annotation resolution issue.
What are the potential impacts of CVE-2025-41249?
CVE-2025-41249 can lead to unauthorized access if annotations used for authorization are not resolved correctly.
Which versions of Spring Framework are affected by CVE-2025-41249?
CVE-2025-41249 affects multiple versions of the Spring Framework prior to the patch release.
Are there any workarounds for CVE-2025-41249?
A workaround for CVE-2025-41249 includes reviewing the method hierarchies and avoiding unbounded generics where annotations are used for security decisions.