{"id":"CVE-2025-22223","published":"2025-03-24T17:42:49Z","modified":"2025-03-24T18:06:24Z","title":"Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods","vendor":"Spring","product":"Spring Security","tier":"tail","description":{"text":"Spring Security 6.4.0 - 6.4.3 may not correctly locate method security annotations on parameterized types or methods. This may cause an authorization bypass. \n\nYou are not affected if you are not using @EnableMethodSecurity, or\nyou do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00583,"percentile":0.41799,"provenance":"source"},"cwes":[{"id":"CWE-290","name":"Authentication Bypass by Spoofing"}],"references":[{"url":"https://spring.io/security/cve-2025-22223","tags":[]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":8.36},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.71}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-04-03","earliestUrl":"https://github.com/1ucky7/cve-2025-22223-demo-1.0.0","repos":[{"name":"1ucky7/cve-2025-22223-demo-1.0.0","url":"https://github.com/1ucky7/cve-2025-22223-demo-1.0.0","stars":0,"created":"2025-04-03"}]},"first":{"date":"2025-04-03","source":"PoC-in-GitHub","url":"https://github.com/1ucky7/cve-2025-22223-demo-1.0.0"},"provenance":"source"},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Security","versions":["6.4.0-6.4.3"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-24T18:04:57.845346Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","vulnerableRanges":[">=6.4.0, <6.4.4"],"patched":["6.4.4"],"from":["GHSA-hh3m-g4qj-4835"],"provenance":"source"}],"summary":{"text":"The flaw is in Spring Security versions 6.4.0 through 6.4.3, where method security annotations placed on parameterized types or methods may not be correctly located. An attacker who can send requests to an affected application can bypass authorization, but only if the application uses @EnableMethodSecurity and has method security annotations on parameterized types or methods that are not attached to the target methods; no authentication or user interaction is required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:51:32Z"},"euvd":{"id":"EUVD-2025-7998","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2025-22223","children":[{"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"]}]},{"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-2024-22257","published":"2024-03-18","fixed":"6.2.3","kev":false},{"cve":"CVE-2024-38810","published":"2024-08-20","fixed":"6.3.2","kev":false},{"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,"link":{"from":"CVE-2025-22223","to":"CVE-2025-22234","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-core","fromFixed":"6.4.4","toFixed":"6.4.5","daysApart":304}]}},{"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}],"package":"Maven:org.springframework.security:spring-security-core"}}