GHSA-293q-567p-wmwq
Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2026-47838
- CVSS_V3
- CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Description
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Maven · org.springframework.security:spring-security-web | introduced 6.5.0, fixed 6.5.11 |
| Maven · org.springframework.security:spring-security-web | introduced 6.4.0, last affected 6.4.13 |
| Maven · org.springframework.security:spring-security-web | introduced 6.0.0, last affected 6.3.10 |
| Maven · org.springframework.security:spring-security-web | introduced 5.8.0, last affected 5.8.16 |
| Maven · org.springframework.security:spring-security-web | introduced 0, last affected 5.7.14 |
Références
- https://nvd.nist.gov/vuln/detail/CVE-2026-47838 ADVISORY
- https://github.com/advisories/GHSA-2jrg-rf5x-568g ADVISORY
- https://spring.io/security/cve-2026-47838 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — GitHub Advisory Database |