{"id":"CVE-2025-41232","published":"2025-05-21T10:23:07Z","modified":"2026-02-26T18:28:04Z","title":"CVE-2025-41232: Spring Security authorization bypass for method security annotations on private methods","vendor":"Spring","product":"Spring Security","tier":"tail","description":{"text":"Spring Security Aspects may not correctly locate method security annotations on private methods. This can cause an authorization bypass.\n\nYour application may be affected by this if the following are true:\n\n  *  You are using @EnableMethodSecurity(mode=ASPECTJ) and spring-security-aspects, and\n  *  You have Spring Security method annotations on a private method\nIn that case, the target method may be able to be invoked without proper authorization.\n\nYou are not affected if:\n\n  *  You are not using @EnableMethodSecurity(mode=ASPECTJ) or spring-security-aspects, or\n  *  You have no Spring Security-annotated private methods","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00638,"percentile":0.51499,"provenance":"source"},"cwes":[{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"http://spring.io/security/cve-2025-41232","tags":[]}],"priority":{"score":16.7,"factors":[{"name":"EPSS percentile","points":10.3},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Security","versions":[">= 6.4.x, < 6.4.6"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-05-22T03:55:16.784508Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-aspects","vulnerableRanges":[">=6.4.0, <6.4.6"],"patched":["6.4.6"],"from":["GHSA-9pp5-9c7g-4r83"],"provenance":"source"},{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=6.4.0, <6.4.6"],"patched":["6.4.6"],"from":["GHSA-9pp5-9c7g-4r83"],"provenance":"source"}],"summary":{"text":"Spring Security's AspectJ-based method security aspects (spring-security-aspects, enabled via @EnableMethodSecurity(mode=ASPECTJ)) fail to correctly locate method security annotations placed on private methods. An attacker with network access and no authentication or user interaction can invoke a target private method that carries Spring Security annotations without the authorization checks being enforced, but only in applications that use AspectJ mode and have annotated private methods.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:55:07Z"},"euvd":{"id":"EUVD-2025-15999","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2025-22223","parents":[{"from":"CVE-2025-22223","to":"CVE-2025-41232","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/bf2aaa1b1830e534ba651d422545ac08a115151b","https://github.com/spring-projects/spring-security/commit/c972de5369a1261ab674a3f5e3a80e8ce3e8cdfb"],"basis":"shared function","functions":["findDirectAnnotations"]}]}],"children":[{"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"}]}],"packageHistory":[{"cve":"CVE-2024-38827","published":"2024-12-02","fixed":"6.3.5","kev":false},{"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},{"cve":"CVE-2026-22751","published":"2026-04-21","fixed":"7.0.5","kev":false}],"package":"Maven:org.springframework.security:spring-security-core"}}