CVE-2025-41248

High

Description

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 .

SeverityHigh
CVSS7.5
Exploit probability—
ProductOrg.springframework.security:spring-security-core
PublishedSep 16, 2025
First seenSep 16, 2025
Weakness typeCWE-289CWE-289

How to fix

Update
  • org.springframework.security:spring-security-core6.4.10, 6.5.4 or later

Affected products

ProductAffected versionsFixed in
org.springframework.security:spring-security-coreMaven6.4.0 ≤ v < 6.4.10, 6.5.0 ≤ v < 6.5.46.4.10, 6.5.4

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-41248 · Org.springframework.security:spring-security-core · Dark Radar