CVE-2026-47838
Received
Received - Intake
Username Impersonation in Spring Security via X.509 CN Handling
Publication date: 2026-06-10
Last updated on: 2026-06-10
Assigner: VMware
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| spring | security | 5.7.0 |
| spring | security | 5.8.0 |
| spring | security | 6.3.0 |
| spring | security | 6.4.0 |
| spring | security | 6.5.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-287 | When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. |