CVE-2026-22747
HIGH 8.1CVSS 3.1Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates
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.
- Published
- 22 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security@vmware.com
- NVD status
- Modified
- Weakness
- CWE-295CWE-297
- Also known as
- GHSA-2jrg-rf5x-568g
- Sources
- NVDJSONOSV GHSA-2jrg-rf5x-568gJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N |
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 6.8 | CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vmware | spring_securitycpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* |
>= 7.0.0, < 7.0.5 | 7.0.5 |
| OSV | Maven | org.springframework.security:spring-security-web | >= 7.0.0, < 7.0.5 | 7.0.5 |
References
- https://spring.io/security/cve-2026-22747 · Vendor Advisory, WEB
- https://access.redhat.com/security/cve/CVE-2026-22747
- https://bugzilla.redhat.com/show_bug.cgi?id=2460487
- 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
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 22 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Apr 2026)