CVE-2025-41249
Spring Framework annotation detection mechanism may result in improper authorization
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 .
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework » spring-core | >= 5.3.0, <= 5.3.44>= 6.0.0, <= 6.1.22>= 6.2.0, < 6.2.11 | 6.2.11 |
Blast radius
68% of the dependent artifacts (35,666) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 122,092 |
| 2 hops | 587,979 |
| 3 hops | 603,358 |
| 4 hops | 243,347 |
| 5 hops | 59,389 |
| 6 hops | 21,298 |
Most used dependents
- org.springframework.boot » spring-boot-starter-test20,993 usages
- org.springframework.boot » spring-boot-starter-web19,081 usages
- org.springframework » spring-context18,670 usages
- org.springframework.boot » spring-boot-autoconfigure15,709 usages
- org.springframework.boot » spring-boot-starter12,901 usages
- org.springframework » spring-test12,234 usages
- org.springframework » spring-web12,086 usages
- org.springframework » spring-beans8,721 usages
- org.springframework.boot » spring-boot-maven-plugin8,665 usages
- org.springframework » spring-webmvc7,538 usages
- org.springframework.boot » spring-boot-starter-actuator6,564 usages
- org.springframework » spring-jdbc5,611 usages
- org.springframework.boot » spring-boot5,107 usages
- org.springframework » spring-tx5,095 usages
- org.springframework.boot » spring-boot-starter-validation4,721 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2025-41249
- Webhttps://github.com/spring-projects/spring-framework/issues/35342
- Webhttps://github.com/spring-projects/spring-framework/commit/6d710d482a6785b069e35022e81758953afc21ff
- Packagehttps://github.com/spring-projects/spring-framework
- Webhttps://github.com/spring-projects/spring-framework/releases/tag/v6.2.11
- Webhttps://spring.io/security/cve-2025-41249
