{"id":"GHSA-hh3m-g4qj-4835","summary":"Spring Security Vulnerable to Authorization Bypass via Security Annotations","details":"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 you do not have method security annotations on parameterized types or methods, or all method security annotations are attached to target methods","aliases":["CVE-2025-22223"],"modified":"2026-08-07T08:12:11.197003801Z","published":"2025-03-24T18:31:03Z","database_specific":{"cwe_ids":["CWE-290"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-03-24T21:20:53Z","nvd_published_at":"2025-03-24T18:15:22Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22223"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/commit/dc2e1af2dab8ef81cd4edd25b56a2babeaab8cf9"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-security"},{"type":"WEB","url":"https://spring.io/security/cve-2025-22223"}],"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.4"}]}],"versions":["6.4.0","6.4.1","6.4.2","6.4.3"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/03/GHSA-hh3m-g4qj-4835/GHSA-hh3m-g4qj-4835.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:L/I:N/A:N"}]}