{"id":"GHSA-8v5q-rhf3-jphm","summary":"Spring Security annotation detection mechanism has authorization bypass","details":"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 .","aliases":["CVE-2025-41248"],"modified":"2026-09-10T03:50:28.136685866Z","published":"2025-09-16T15:32:34Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2025-09-16T19:34:33Z","nvd_published_at":"2025-09-16T11:15:30Z","cwe_ids":["CWE-289","CWE-863"]},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-41248"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/issues/17898"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/issues/17899"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-security"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/releases/tag/6.4.10"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/releases/tag/6.5.4"},{"type":"WEB","url":"https://spring.io/security/cve-2025-41248"}],"affected":[{"package":{"name":"org.springframework.security:spring-security-core","ecosystem":"Maven","purl":"pkg:maven/org.springframework.security/spring-security-core"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.4.0"},{"fixed":"6.4.10"}]}],"versions":["6.4.0","6.4.1","6.4.2","6.4.3","6.4.4","6.4.5","6.4.6","6.4.7","6.4.8","6.4.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-8v5q-rhf3-jphm/GHSA-8v5q-rhf3-jphm.json"}},{"package":{"name":"org.springframework.security:spring-security-core","ecosystem":"Maven","purl":"pkg:maven/org.springframework.security/spring-security-core"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.5.0"},{"fixed":"6.5.4"}]}],"versions":["6.5.0","6.5.1","6.5.2","6.5.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/09/GHSA-8v5q-rhf3-jphm/GHSA-8v5q-rhf3-jphm.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}