Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Spring app using X.509 auth
-
DeliveryObtain certificate from trusted CA with crafted CN
-
ExploitInitiate mutual TLS handshake
-
ExecutionSubjectDnX509PrincipalExtractor misparses CN
-
PersistSpring loads victim's UserDetails
-
ImpactOperate as impersonated user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK
2 techniques across 2 tactics: Defense Evasion, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target Spring application has X.509 client-certificate authentication enabled and uses the default SubjectDnX509PrincipalExtractor (or any extractor that derives the username from the CN field of the Subject DN), and that the attacker can obtain a client certificate signed by a CA in the server's trust store with a CN field they control. Practical limits: the attacker must be able to choose or influence the CN at certificate issuance time - environments where an internal CA validates and rewrites CNs are harder to exploit; deployments that authenticate purely by certificate-pinning or by serial number rather than DN parsing are not vulnerable; no user interaction is required and the attack is network-reachable wherever mutual TLS is exposed. |
| Impact | Signals are mixed but converge on a moderate, not urgent, priority. CVSS 8.1 (AV:N/AC:L/PR:L/UI:N/C:H/I:H/A:N) and SSVC 'Technical Impact: total' reflect that successful impersonation can fully compromise a victim account's confidentiality and integrity over the network with low complexity. However, SSVC also records 'Exploitation: none' and 'Automatable: no', EPSS sits at 0.02% (4th percentile), and the issue is not on CISA KEV - consistent with a logic flaw that requires the attacker to already possess a certificate signing pathway and craft a targeted CN, not a mass-scannable RCE. PR:L is appropriate because the attack vector inherently requires the attacker to present a client certificate the server's CA trust chain accepts; environments where certificate issuance is tightly controlled face a much higher bar than environments using a permissive or self-service CA. Net: prioritize patching applications that expose X.509 authentication to external or semi-trusted PKIs, while internal-PKI deployments can patch on a normal cadence. |
| Exploit ScenarioDerived | An attacker enrolls or obtains a client certificate from a CA the target server trusts, requesting a CN that embeds RDN-style separators or malformed sequences designed to be reparsed as a different username (for example, a victim administrator's identifier). The attacker then performs a normal mutual-TLS handshake against the Spring application; SubjectDnX509PrincipalExtractor extracts the crafted fragment instead of the true CN and Spring Security loads the victim's UserDetails, granting the attacker that user's roles. No public exploit identified at time of analysis, but the logic-flaw nature means a working PoC could be produced quickly once internals are known. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – Jun 18, 2026
Authentication bypass via X.509 certificate impersonation in Spring Security affects versions 5.7.0-5.7.24, 5.8.0-5.8.26, 6.3.0-6.3.17, 6.4.0-6.4.17, and 6.5.0-6.5.10, where the SubjectDnX509PrincipalExtractor mishandles malformed Common Name (CN) values and resolves the principal to the wrong identity. An attacker holding a carefully crafted client certificate can authenticate as a different legitimate user, gaining their privileges. No public exploit identified at time of analysis, and the EPSS score of 0.02% (4th percentile) reflects no observed exploitation activity.
Earlier versions of this analysis (2)
Authentication bypass via certificate impersonation in Spring Security affects versions 5.7.0-5.7.24, 5.8.0-5.8.26, 6.3.0-6.3.17, 6.4.0-6.4.17, and 6.5.0-6.5.10 when X.509 client certificate authentication uses SubjectDnX509PrincipalExtractor. An attacker presenting a maliciously crafted certificate with a malformed Common Name can cause the extractor to read the wrong value as the username, enabling impersonation of another legitimate user. No public exploit identified at time of analysis; EPSS is 0.02% and the issue is not in CISA KEV, but SSVC rates technical impact as total because successful exploitation yields another user's identity.
Spring Security's SubjectDnX509PrincipalExtractor misparses malformed CN (Common Name) values in X.509 client certificates, causing the wrong username to be resolved during authentication and enabling an authenticated attacker to impersonate arbitrary users. Affected release trains span five active Spring Security branches (5.7.x, 5.8.x, 6.3.x, 6.4.x, 6.5.x), making this a broad-reach issue for Java enterprise applications using certificate-based authentication. Per CVSS (PR:L, C:H, I:H), a low-privileged attacker who can present a crafted certificate can fully compromise the confidentiality and integrity of an impersonated account. No public exploit has been identified at time of analysis and the vulnerability is not listed in the CISA KEV catalog.
RemediationAI
Vendor-released patches are available: upgrade to Spring Security 5.7.25, 5.8.27, 6.3.18, 6.4.18, or 6.5.11 per your maintenance branch, as listed in the EUVD record and the Spring advisory at https://spring.io/security/cve-2026-47838. If immediate patching is not possible, the most effective compensating control is to replace SubjectDnX509PrincipalExtractor with a SubjectX500PrincipalExtractor or a custom X509PrincipalExtractor that resolves the principal from a stable, non-CN attribute (for example the certificate serial number or a fingerprint) - this avoids the CN parsing path entirely but requires updating any downstream UserDetails lookup keyed on CN. Tightening the trusted CA list so only an internal CA (which strictly validates CN values at issuance) can sign client certificates also blocks the practical attack path, at the cost of breaking external-PKI federation. Audit recent successful X.509 logins for CN values containing unusual punctuation, escape sequences, or embedded RDN separators to identify possible exploitation attempts.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Spring Security is the de-facto authentication and authorization framework for Java applications built on the Spring ecosystem, including Spring Boot REST APIs and MVC web apps. The vulnerable component, SubjectDnX509PrincipalExtractor, is the default extractor used when applications enable mutual TLS / X.509 client-certificate authentication; it parses the Subject Distinguished Name from a presented certificate and extracts a field (typically CN) as the username that is then mapped to a UserDetails record. The root cause maps to CWE-287 (Improper Authentication): the parsing logic does not correctly normalize or escape certain malformed CN values, so a CN containing crafted delimiters, embedded RDN-like sequences, or special characters is interpreted as a different principal string than the certificate's true subject. Per CPE, all affected releases are tracked under cpe:2.3:a:vmware:spring_security and the issue was disclosed by VMware/Broadcom (security@vmware.com).
Know when Spring Security gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Network-reachable mTLS endpoint (AV:N, AC:L); attacker must hold a CA-signed client cert with controlled CN (PR:L); full impersonation yields C:H/I:H, no service disruption (A:N).
Primary rating from Vendor (vmware).
CVSS VectorNVD
Lifecycle Timeline
5DescriptionNVD
SubjectDnX509PrincipalExtractor 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.
Affected versions: Spring Security 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10.
Blast Radius
ecosystem impact- 1,104 maven packages depend on org.springframework.security:spring-security-web (439 direct, 665 indirect)
Ecosystem-wide dependent count for version 6.5.0.
Executive ViewAI
Spring Security versions 5.7 through 6.5 contain a flaw in certificate verification that allows attackers with a specially crafted certificate to gain unauthorized access as another legitimate user. This enables access to sensitive data and systems belonging to that user, creating a direct channel for privilege escalation and data theft. Current exploitation activity is minimal and a vendor patch is available.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Related Vulnerabilities in Spring Security Auth and Injection Flaws
View all 6More in Spring Security
View allWhen using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano
Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri
Spring Security, versions 5.7 prior to 5.7.5 and 5.6 prior to 5.6.9 could be susceptible to authorization rules bypass v
In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea
Authentication bypass in VMware/Spring's Spring Authorization Server (versions 7.0.0-7.0.4, 1.5.0-1.5.6, 1.4.0-1.4.9, an
Spring Security versions 5.8 prior to 5.8.5, 6.0 prior to 6.0.5, and 6.1 prior to 6.1.2 could be susceptible to authoriz
Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b
Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach
Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
Spring Security 5.4.x prior to 5.4.4, 5.3.x prior to 5.3.8.RELEASE, 5.2.x prior to 5.2.9.RELEASE, and older unsupported
Spring Security versions 5.2.x prior to 5.2.4 and 5.3.x prior to 5.3.2 contain a signature wrapping vulnerability during
EUVD-2026-35911
GHSA-293q-567p-wmwq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB