{"id":"CVE-2025-41248","published":"2025-09-16T10:10:59Z","modified":"2025-09-18T06:29:51Z","title":"CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types","vendor":"VMware","product":"Spring Security","tier":"tail","description":{"text":"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.\n\nYour application may be affected by this if you are using Spring Security's @EnableMethodSecurity feature.\n\nYou 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.\n\nThis CVE is published in conjunction with  CVE-2025-41249 https://spring.io/security/cve-2025-41249 .","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0045,"percentile":0.39967,"provenance":"source"},"cwes":[{"id":"CWE-289","name":"Authentication Bypass by Alternate Name"}],"references":[{"url":"https://spring.io/security/cve-2025-41248","tags":[]}],"priority":{"score":13.2,"factors":[{"name":"EPSS percentile","points":7.99},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vmware","affectedVersions":[{"vendor":"VMware","product":"Spring Security","versions":[">= 6.4.x, < 6.4.11",">= 6.5.x, < 6.5.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-16T19:27:50.837990Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=6.4.0, <6.4.10",">=6.5.0, <6.5.4"],"patched":["6.4.10","6.5.4"],"from":["GHSA-8v5q-rhf3-jphm"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-29538","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2025-22223","parents":[{"from":"CVE-2025-41232","to":"CVE-2025-41248","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.4.6","toFixed":"6.4.10","daysApart":118},{"kind":"same-code","provenance":"machine","files":["core/src/main/java/org/springframework/security/core/annotation/UniqueSecurityAnnotationScanner.java"],"commits":["https://github.com/spring-projects/spring-security/commit/bf2aaa1b1830e534ba651d422545ac08a115151b","https://github.com/spring-projects/spring-security/commit/c972de5369a1261ab674a3f5e3a80e8ce3e8cdfb","https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f","https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd"],"basis":"rarely changed file"}]},{"from":"CVE-2025-22223","to":"CVE-2025-41248","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["core/src/main/java/org/springframework/security/core/annotation/UniqueSecurityAnnotationScanner.java"],"commits":["https://github.com/spring-projects/spring-security/commit/dc2e1af2dab8ef81cd4edd25b56a2babeaab8cf9","https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f","https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2025-22223","published":"2025-03-24","fixed":"6.4.4","kev":false},{"cve":"CVE-2025-22234","published":"2026-01-22","fixed":"6.4.5","kev":false},{"cve":"CVE-2025-41232","published":"2025-05-21","fixed":"6.4.6","kev":false},{"cve":"CVE-2025-41248","published":"2025-09-16","fixed":"6.5.4","kev":false},{"cve":"CVE-2026-22746","published":"2026-04-22","fixed":"7.0.5","kev":false,"link":{"from":"CVE-2025-41248","to":"CVE-2026-22746","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.5.4","toFixed":"6.5.10","daysApart":218}]}},{"cve":"CVE-2026-22751","published":"2026-04-21","fixed":"7.0.5","kev":false,"link":{"from":"CVE-2025-41248","to":"CVE-2026-22751","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.5.4","toFixed":"6.5.10","daysApart":217}]}}],"package":"Maven:org.springframework.security:spring-security-core"}}