8.2high
Erroneous authentication pass in Spring Security
- Severity
- 8.2high CVSS:3.1 by vmware
- Exploit likelihood
- 0.96% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-f3jh-qvm4-mg39
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Spring Security | 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 | CVE List |
| pivotal_software spring_security | from 5.7.0 up to 5.7.11, from 5.8.0 up to 5.8.10, from 6.0.0 up to 6.0.9, from 6.1.0 up to 6.1.7, from 6.2.0 up to 6.2.2 | CVE List |
| org.springframework.security:spring-security-core (Maven) | before 5.7.12, from 5.8.0 before 5.8.11, from 6.0.0 before 6.1.8, from 6.2.0 before 6.2.3 | GitHub Advisory Database |
All scores
| vmware | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
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.
Specifically, an application is vulnerable if:
The application uses AuthenticatedVoter directly and a null authentication parameter is passed to it resulting in an erroneous true return value.
An application is not vulnerable if any of the following is true:
- The application does not use AuthenticatedVoter#vote directly.
- The application does not pass null to AuthenticatedVoter#vote.
Note that AuthenticatedVoter is deprecated since 5.8, use implementations of AuthorizationManager as a replacement.
NVD (es)
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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-22257 changed 2026-06-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-f3jh-qvm4-mg39 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-22257 changed 2026-06-30 | Public domain |