CVE-2026-22747
Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates
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 Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.springframework.security » spring-security-web | >= 7.0.0, < 7.0.5 | 7.0.5 |
Blast radius
17% of the dependent artifacts (202) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 809 |
| 2 hops | 2,020 |
| 3 hops | 3,137 |
| 4 hops | 2,257 |
| 5 hops | 146 |
| 6 hops | 9 |
Most used dependents
- org.springframework.boot » spring-boot-starter-security3,614 usages
- org.springframework.security » spring-security-test1,311 usages
- org.jenkins-ci.main » jenkins-core1,191 usages
- org.springframework.security » spring-security-cas550 usages
- org.apereo.cas » cas-server-core-util-api492 usages
- org.springframework.security » spring-security-oauth2-client481 usages
- org.springframework.boot » spring-boot-security479 usages
- org.springframework.boot » spring-boot-starter-oauth2-resource-server466 usages
- org.springframework.boot » spring-boot-starter-oauth2-client447 usages
- org.apereo.cas » cas-server-core-configuration-api442 usages
- org.apereo.cas » cas-server-core-authentication-api400 usages
- org.springframework.security » spring-security-oauth2-resource-server368 usages
- org.springframework.security » spring-security-taglibs334 usages
- org.apereo.cas » cas-server-core-util296 usages
- org.apereo.cas » cas-server-core-web-api288 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Advisory | NVD CVE-2026-22747 | nvd.nist.gov |
| Package | spring-projects/spring-security | github.com |
| Web | spring-projects/spring-security commit 88118af | github.com |
| Web | security/cve-2026-22747 | spring.io |
