Vulnerability · Published Apr 22, 2026 · Assigned by vmware
CVE-2026-22747Unauthorized User Impersonation when Using X.509 Client Certificates
Medium 6.8
In plain English
A medium-severity improper certificate validation in Spring Security from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 15% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.springframework.security:spring-security-web | 7.0.5 | GHSA-2jrg-rf5x-568g |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Spring | Spring Security | 7.0.0 – through 7.0.4 |
Weakness: CWE-297, CWE-295 · Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
References
- https://spring.io/security/cve-2026-22747
- https://access.redhat.com/security/cve/CVE-2026-22747 vdb-entry, x_refsource_REDHAT
- RHBZ#2460487 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json x_sadp-csaf-vex