Vulnerability · Published Jun 9, 2026 · Assigned by vmware
CVE-2026-47838Unauthorized User Impersonation when Using X.509 Client Certificates
Medium 6.8
In plain English
A medium-severity improper authentication in Spring Security from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 3% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-web | 6.5.11 | GHSA-293q-567p-wmwq |
| Maven | org.springframework.security:spring-security-web | no fix listed | GHSA-293q-567p-wmwq |
| Maven | org.springframework.security:spring-security-web | no fix listed | GHSA-293q-567p-wmwq |
| Maven | org.springframework.security:spring-security-web | no fix listed | GHSA-293q-567p-wmwq |
| Maven | org.springframework.security:spring-security-web | no fix listed | GHSA-293q-567p-wmwq |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Security | 5.7.0 – before 5.7.255.8.0 – before 5.8.276.3.0 – before 6.3.186.4.0 – before 6.4.186.5.0 – before 6.5.10.2 |
Weakness: CWE-287 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N