6.8medium
Unauthorized User Impersonation when Using X.509 Client Certificates
- Severity
- 6.8medium CVSS:3.1 by vmware
- Exploit likelihood
- 0.13% (higher than 3% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-293q-567p-wmwq
Description
SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. Affected versions: Spring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Spring Spring Security | from 5.7.0 before 5.7.25, from 5.8.0 before 5.8.27, from 6.3.0 before 6.3.18, from 6.4.0 before 6.4.18, from 6.5.0 before 6.5.10.2 | CVE List |
| org.springframework.security:spring-security-web (Maven) | from 6.5.0 before 6.5.11, from 6.4.0 up to 6.4.13, from 6.0.0 up to 6.3.10, from 5.8.0 up to 5.8.16, up to 5.7.14 | GitHub Advisory Database |
| vmware spring_security | before 5.7.25, from 5.8.0 before 5.8.27, from 6.3.0 before 6.3.18, from 6.4.0 before 6.4.18, from 6.5.0 before 6.5.11 | NVD |
All scores
| vmware | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 6.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.
What each source says
CVE List
SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user. Affected versions: Spring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10.
GitHub Advisory Database
In Spring Security Web, SubjectDnX509PrincipalExtractor does not correctly handle certain malformed X.509 certificate CN values, which can lead to reading the wrong value for the username. In a carefully crafted certificate, this can lead to an attacker impersonating another user.
SubjectDnX509PrincipalExtractor is deprecated by this CVE and replaced with SubjectX500PrincipalExtractor. As part of updating, you should also migrate to SubjectX500PrincipalExtractor.
Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.
NVD (es)
SubjectDnX509PrincipalExtractor no maneja correctamente ciertos valores CN malformados de certificados X.509, lo que puede llevar a la lectura de un valor incorrecto para el nombre de usuario. En un certificado cuidadosamente elaborado, esto puede llevar a un atacante suplantando a otro usuario. Versiones afectadas: Spring Security 5.7.0 a 5.7.24; 5.8.0 a 5.8.26; 6.3.0 a 6.3.17; 6.4.0 a 6.4.17; 6.5.0 a 6.5.10.
References
| https://spring.io/security/cve-2026-47838 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-47838 | advisory | |
| https://github.com/advisories/GHSA-2jrg-rf5x-568g | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47838 changed 2026-06-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-293q-567p-wmwq changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-47838 changed 2026-07-23 | Public domain |