{"id":"CVE-2024-22257","aliases":["CVE-2024-22257","GHSA-f3jh-qvm4-mg39"],"related":[],"kind":"vulnerability","state":"published","title":"Erroneous authentication pass in Spring Security","summary":"In Spring Security, versions 5.7.x prior to 5.7.12, 5.8.x prior to \n5.8.11, versions 6.0.x prior to 6.0.9, versions 6.1.x prior to 6.1.8, \nversions 6.2.x prior to 6.2.3, an application is possible vulnerable to \nbroken access control when it directly uses the AuthenticatedVoter#vote passing a null Authentication parameter.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Spring Security, versions 5.7.x prior to 5.7.12, 5.8.x prior to \n5.8.11, versions 6.0.x prior to 6.0.9, versions 6.1.x prior to 6.1.8, \nversions 6.2.x prior to 6.2.3, an application is possible vulnerable to \nbroken access control when it directly uses the AuthenticatedVoter#vote passing a null Authentication parameter.","source":"cvelist"},{"lang":"en","text":"In Spring Security, versions 5.7.x prior to 5.7.12, 5.8.x prior to 5.8.11, versions 6.0.x prior to 6.0.9, versions 6.1.x prior to 6.1.8, versions 6.2.x prior to 6.2.3, an application is possible vulnerable to broken access control when it directly uses the AuthenticatedVoter#vote passing a null Authentication parameter.\n\nSpecifically, an application is vulnerable if:\n\nThe application uses AuthenticatedVoter directly and a null authentication parameter is passed to it resulting in an erroneous true return value.\n\nAn application is not vulnerable if any of the following is true:\n\n* The application does not use AuthenticatedVoter#vote directly.\n* The application does not pass null to AuthenticatedVoter#vote.\n\nNote that AuthenticatedVoter is deprecated since 5.8, use implementations of AuthorizationManager as a replacement.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Spring Security, versiones 5.7.x anteriores a 5.7.12, 5.8.x anteriores a 5.8.11, versiones 6.0.x anteriores a 6.0.9, versiones 6.1.x anteriores a 6.1.8, versiones 6.2.x anteriores a 6.2 .3, una aplicación es posiblemente vulnerable a un control de acceso roto cuando utiliza directamente el voto Autenticado#voto pasando un parámetro de autenticación nulo.","source":"nvd"}],"published":"2024-03-18T14:18:52.986Z","modified":"2026-09-10T03:50:10.594Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N","score":8.2,"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:L/A:N","score":8.2,"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:L/A:N","score":8.2,"rating":"HIGH"}],"cwes":["CWE-287","CWE-862"],"affected":[{"ranges":[{"version":"6.2.0 to 6.2.2, 6.1.0 to 6.1.7, 6.0.0 to 6.0.9, 5.8.0 to 5.8.10, 5.7.0 to 5.7.11","status":"affected"}],"product":"Spring Security","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"5.7.0","lastAffected":"5.7.11","status":"affected"},{"type":"custom","introduced":"5.8.0","lastAffected":"5.8.10","status":"affected"},{"type":"custom","introduced":"6.0.0","lastAffected":"6.0.9","status":"affected"},{"type":"custom","introduced":"6.1.0","lastAffected":"6.1.7","status":"affected"},{"type":"custom","introduced":"6.2.0","lastAffected":"6.2.2","status":"affected"}],"vendor":"pivotal_software","product":"spring_security","cpe":"cpe:2.3:a:pivotal_software:spring_security:5.7.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"5.7.12"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-core","purl":"pkg:maven/org.springframework.security/spring-security-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.8.0","status":"affected","fixed":"5.8.11"}],"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.0.0","status":"affected","fixed":"6.1.8"}],"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.2.0","status":"affected","fixed":"6.2.3"}],"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-2024-22257","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://security.netapp.com/advisory/ntap-20240419-0005/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/dependency-check/DependencyCheck/issues/8642","tags":[],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22257","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security/commit/5a7f12f1a9fdb4edaab6f61495f1d781a7273b61","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/spring-projects/spring-security","tags":["package"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20240419-0005","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2024-11-12T15:22:14.458Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-22257","url":"https://www.cve.org/CVERecord?id=CVE-2024-22257","licence":"CVE Terms of Use","modified":"2026-06-30T13:13:48.866Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-f3jh-qvm4-mg39","url":"https://github.com/advisories/GHSA-f3jh-qvm4-mg39","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.594Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-22257","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-22257","licence":"Public domain","modified":"2026-06-30T13:16:50.783Z"}],"updatedAt":"2026-11-25T22:58:37.659Z","epss":{"score":0.00956,"percentile":0.62436,"date":"2026-12-01T12:00:22.000Z"}}