CVE-2025-41248
CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types
CVE-2025-41248 is a high vulnerability (CVSS 7.5) in Spring Security, published September 16, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.45%, the 39th percentile. Fixed in org.springframework.security:spring-security-core 6.4.10.
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 .
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
7.5
CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types
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 .
- Record
CVE-2025-41248- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-289
- Updated
- 2026-11-02
EUVDEUVD-2025-29538
7.5
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 .
- Record
EUVD-2025-29538- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8v5q-rhf3-jphm
7.5
Spring Security annotation detection mechanism has authorization bypass
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 .
- Record
GHSA-8v5q-rhf3-jphm- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-289, CWE-863
- Updated
- 2026-11-02
NVD
7.5
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 .
- Record
CVE-2025-41248- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-289
- Updated
- 2026-11-02
OSVGHSA-8v5q-rhf3-jphm
7.5
Spring Security annotation detection mechanism has authorization bypass
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 .
- Record
GHSA-8v5q-rhf3-jphm- CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N - Weakness
- CWE-289, CWE-863
- Updated
- 2026-11-02
OSVCLSA-2026-1775694712 No score
TuxCare security update for org.springframework.security (5 CVEs)
TuxCare rebuilt 4 org.springframework.security packages to address 5 CVEs. Fixed in 6.4.3-tuxcare.1.
- Record
CLSA-2026-1775694712- Updated
- 2026-11-02
OSVROOT-APP-MAVEN-CVE-2025-41248 No score
CVE-2025-41248 in org.springframework.security:spring-security-core - Patched by Root
Root has patched CVE-2025-41248 in the org.springframework.security:spring-security-core package for Root:Maven. Multiple fixed versions available.
- Record
ROOT-APP-MAVEN-CVE-2025-41248- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.springframework.security:spring-security-coreMaven |
6.4.0 up to 6.4.10 | 6.4.10 |
org.springframework.security:spring-security-coreMaven |
6.5.0 up to 6.5.4 | 6.5.4 |
org.springframework.security:spring-security-configTuxCare:Maven |
6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-coreTuxCare:Maven |
6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-cryptoTuxCare:Maven |
6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-webTuxCare:Maven |
6.4.3 up to 6.4.3-tuxcare.1 | 6.4.3-tuxcare.1 |
org.springframework.security:spring-security-coreMaven |
6.4.0 up to 6.4.10, plus listed versions 6.4.16.4.26.4.36.4.46.4.5 Show 4 moreShow less6.4.66.4.76.4.86.4.9 |
6.4.10 |
org.springframework.security:spring-security-coreMaven |
6.5.0 up to 6.5.4, plus listed versions 6.5.16.5.26.5.3 |
6.5.4 |
org.springframework.security:spring-security-coreRoot:Maven |
before 6.4.2-aikido.2 | 6.4.2-aikido.26.5.0-aikido.2 |
io.root.org.springframework.security:spring-security-coreRoot:Maven |
before 6.4.2-root.io.2 | 6.4.2-root.io.26.5.0-root.io.2 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
spring.io/security/cve-2025-41248
nvd.nist.gov/vuln/detail/CVE-2025-41248
github.com/spring-projects/spring-security/issues/17898
github.com/spring-projects/spring-security/issues/17899
github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f
github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd