# CVE-2026-22747: 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.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2026-04-22T05:08:41.318Z
- Modified: 2026-10-26T22:10:00.163Z
- Also known as: GHSA-2jrg-rf5x-568g
- Weaknesses: CWE-295, CWE-297
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: vmware

## Description

Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor 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.
This issue affects Spring Security: from 7.0.0 through 7.0.4.

(As written by CVE List.)

## Affected

- Spring Spring Security: from 7.0.0 up to 7.0.4
- jenkins: no versions given
- ocp-tools-4/jenkins-rhel8: no versions given
- ocp-tools-4/jenkins-rhel9: no versions given
- spring-security-core: no versions given
- quarkus-spring-security-core-api: no versions given
- org.apache.servicemix.bundles.spring-security-core: no versions given
- devspaces/openvsx-rhel9: no versions given
- devspaces/pluginregistry-rhel9: no versions given
- org.springframework.security:spring-security-web (Maven): from 7.0.0 before 7.0.5
- vmware spring_security: from 7.0.0 before 7.0.5

## 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`
- redhat-SADP: 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`
- 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-22747> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2026-22747> (vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2460487> (issue-tracking)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-22747> (advisory)
- <https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3> (web)
- <https://github.com/spring-projects/spring-security> (package)

## Sources

- CVE List: [CVE-2026-22747](https://www.cve.org/CVERecord?id=CVE-2026-22747), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-2jrg-rf5x-568g](https://github.com/advisories/GHSA-2jrg-rf5x-568g), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-22747](https://nvd.nist.gov/vuln/detail/CVE-2026-22747), Public domain, modified 2026-10-26

---

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