# CVE-2026-47838: Unauthorized User Impersonation when Using X.509 Client Certificates

- Severity: Medium 6.8 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-06-09T23:50:07.988Z
- Modified: 2026-09-10T03:51:07.677Z
- Also known as: GHSA-293q-567p-wmwq
- Weaknesses: CWE-287
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Spring Spring Security: from 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.2
- 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.14
- vmware spring_security: 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.11

## Every score

- vmware: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 6.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 8.1 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://spring.io/security/cve-2026-47838> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-47838> (advisory)
- <https://github.com/advisories/GHSA-2jrg-rf5x-568g> (advisory)

## Sources

- CVE List: [CVE-2026-47838](https://www.cve.org/CVERecord?id=CVE-2026-47838), CVE Terms of Use, modified 2026-06-30
- GitHub Advisory Database: [GHSA-293q-567p-wmwq](https://github.com/advisories/GHSA-293q-567p-wmwq), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-47838](https://nvd.nist.gov/vuln/detail/CVE-2026-47838), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-47838 · Whole record: https://cve.day/CVE-2026-47838.json · Rebuilt by cve.day 2026-11-25T22:59:24.302Z
