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.

Severity (CVSS 3.1)6.8Medium
Exploit odds (30 days)0.1%top 97.2% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.springframework.security:spring-security-web6.5.11GHSA-293q-567p-wmwq
Mavenorg.springframework.security:spring-security-webno fix listedGHSA-293q-567p-wmwq
Mavenorg.springframework.security:spring-security-webno fix listedGHSA-293q-567p-wmwq
Mavenorg.springframework.security:spring-security-webno fix listedGHSA-293q-567p-wmwq
Mavenorg.springframework.security:spring-security-webno fix listedGHSA-293q-567p-wmwq

Affected products (as reported)

VendorProductVersions
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

References