{"id":"CVE-2025-41248","aliases":["CVE-2025-41248","GHSA-8v5q-rhf3-jphm"],"related":[],"kind":"vulnerability","state":"published","title":"CVE-2025-41248: Spring Security authorization bypass for method security annotations on parameterized types","summary":"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 .","summarySource":"cvelist","descriptions":[{"lang":"en","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 .","source":"cvelist"}],"published":"2025-09-16T10:10:59.953Z","modified":"2026-09-10T03:50:28.136Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"}],"cwes":["CWE-289","CWE-863"],"affected":[{"ranges":[{"type":"OSS","introduced":"6.4.x","fixed":"6.4.11","status":"affected"},{"type":"OSS","introduced":"6.5.x","fixed":"6.5.5","status":"affected"}],"vendor":"VMware","product":"Spring Security","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.4.0","status":"affected","fixed":"6.4.10"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.5.0","status":"affected","fixed":"6.5.4"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"ghsa"}],"references":[{"url":"https://spring.io/security/cve-2025-41248","tags":["web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-41248","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/issues/17898","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/issues/17899","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/commit/d0f93fa6d8338149943ae640c53db07de827867f","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/commit/e5694ac7b5e4394b920c6cab48b7bfbd871f84bd","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/releases/tag/6.4.10","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/releases/tag/6.5.4","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-09-16T19:27:50.837Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-41248","url":"https://www.cve.org/CVERecord?id=CVE-2025-41248","licence":"CVE Terms of Use","modified":"2025-09-18T06:29:51.189Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-8v5q-rhf3-jphm","url":"https://github.com/advisories/GHSA-8v5q-rhf3-jphm","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:28.136Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-41248","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-41248","licence":"Public domain","modified":"2026-06-17T09:22:40.210Z"}],"updatedAt":"2026-11-25T22:59:04.713Z","epss":{"score":0.0045,"percentile":0.40803,"date":"2026-12-02T12:00:21.000Z"}}