CVE-2026-47838
JSON

6.8medium

Unauthorized User Impersonation when Using X.509 Client Certificates

Severity
6.8medium CVSS:3.1 by vmware
Exploit likelihood
0.13% (higher than 3% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-293q-567p-wmwq

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

Product or packageVersionsReported by
Spring Spring Securityfrom 5.7.0 before 5.7.25, from 5.8.0 before 5.8.27, from 6.3.0 before 6.3.18, from 6.4.0 before 6.4.18, from 6.5.0 before 6.5.10.2CVE List
org.springframework.security:spring-security-web (Maven)from 6.5.0 before 6.5.11, from 6.4.0 up to 6.4.13, from 6.0.0 up to 6.3.10, from 5.8.0 up to 5.8.16, up to 5.7.14GitHub Advisory Database
vmware spring_securitybefore 5.7.25, from 5.8.0 before 5.8.27, from 6.3.0 before 6.3.18, from 6.4.0 before 6.4.18, from 6.5.0 before 6.5.11NVD

All scores

vmware6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
GitHub6.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-287

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

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.

NVD (es)

SubjectDnX509PrincipalExtractor no maneja correctamente ciertos valores CN malformados de certificados X.509, lo que puede llevar a la lectura de un valor incorrecto para el nombre de usuario. En un certificado cuidadosamente elaborado, esto puede llevar a un atacante suplantando a otro usuario. Versiones afectadas: Spring Security 5.7.0 a 5.7.24; 5.8.0 a 5.8.26; 6.3.0 a 6.3.17; 6.4.0 a 6.4.17; 6.5.0 a 6.5.10.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-47838 changed 2026-06-30CVE Terms of Use
GitHub Advisory DatabaseGHSA-293q-567p-wmwq changed 2026-09-10CC-BY-4.0
NVDCVE-2026-47838 changed 2026-07-23Public domain