HIGH 7.5

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)

ArtifactAffected versionsFixed 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

1affected artifacts
146affected versions
51,721dependent artifacts (est.)
1,637,463dependent versions

68% of the dependent artifacts (35,666) still pull an affected version in their latest release.

DepthDependent 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

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.