Spring Security
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.
Affected versions and mitigation
From the CVE record, GitHub Security Advisories and the vendor's references.Affected
- >= 7.0.0, <= 7.0.4
- >= 7.0.0, < 7.0.5
Fixed in 7.0.5
from GitHub Security Advisory GHSA-2jrg-rf5x-568g
Mitigation
Upgrade org.springframework.security:spring-security-web to 7.0.5 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.1 pending · 1 suspicious or fake
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| gsadagopan/cve-2026-22747-sandbox | 9 Aug 2026 +110 d | 0 | Pending · repository exceeds size limit |
Suspicious or fake 1
| Repository | Created | Found by us | Stars | Assessment |
|---|---|---|---|---|
| yakissa/CVE-2026-22747 | 19 Oct 2026 +180 d | 14 Nov 2026 | 0 | Suspicious · score 100
Why suspicious
|
Only PoCs count toward the first-PoC date and the characteristics below. Suspicious repositories (score ≥ 50) never count. "Backfilled" means we found the repository more than 30 days after it was created. Do not run PoC code from unknown sources.