CVE-2025-41248
Last modified
CVE-2025-41248 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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 .. EPSS estimates a 0.43% chance of exploitation in the next 30 days.
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 .
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2025-41248?
How severe is CVE-2025-41248?
How do I fix CVE-2025-41248?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-41241VMware vCenter contains a denial-of-service vulnerability. A…4.4
- CVE-2025-41242Spring Framework MVC applications can be vulnerable to a “Pa…5.9
- CVE-2025-41243Spring Cloud Gateway Server Webflux may be vulnerable to Spr…10
- CVE-2025-41244VMware Aria Operations and VMware Tools contain a local priv…7.8
- CVE-2025-41245VMware Aria Operations contains an information disclosure vu…4.9
- CVE-2025-41246VMware Tools for Windows contains an improper authorisation …7.6
- CVE-2025-41249The Spring Framework annotation detection mechanism may not …7.5
- CVE-2025-4125Delta Electronics ISPSoft version 3.20 is vulnerable to an O…9.8
- CVE-2025-41250VMware vCenter contains an SMTP header injection vulnerabili…8.5
- CVE-2025-41251VMware NSX contains a weak password recovery mechanism vulne…8.1
- CVE-2025-41252Description: VMware NSX contains a username enumeration vuln…7.5
- CVE-2025-41253The following versions of Spring Cloud Gateway Server Webflu…7.5
Are you affected by CVE-2025-41248?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
