medium6.8
CVE-2026-22747
Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates
Impact
Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor 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. This issue affects Spring Security: from 7.0.0 through 7.0.4.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| maven | org.springframework.security:spring-security-web | >= 7.0.0, <= 7.0.4 | 7.0.5 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Vmware | Spring Security | from 7.0.0 before 7.0.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-2jrg-rf5x-568g
- https://nvd.nist.gov/vuln/detail/CVE-2026-22747
- https://spring.io/security/cve-2026-22747
- https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3
- https://access.redhat.com/security/cve/CVE-2026-22747
- https://bugzilla.redhat.com/show_bug.cgi?id=2460487
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json