Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate host validation
|
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv5 – Jun 30, 2026
Authentication bypass via user impersonation affects Spring Security 7.0.0 through 7.0.4, where the SubjectX500PrincipalExtractor mishandles malformed CN values in X.509 client certificates and extracts the wrong username. Authenticated attackers presenting a carefully crafted certificate can be authenticated as a different (potentially higher-privileged) user. No public exploit identified at time of analysis; EPSS is very low (0.02%) and CISA SSVC marks exploitation as none.
Earlier versions of this analysis (4)
Authentication bypass via user impersonation affects Spring Security 7.0.0 through 7.0.4 when X.509 client-certificate authentication is in use. The SubjectX500PrincipalExtractor mishandles certain malformed Common Name (CN) values in the certificate subject, so a carefully crafted X.509 certificate causes the wrong value to be parsed as the username, letting an attacker authenticate as a different user. No public exploit identified at time of analysis, and EPSS is very low (0.02%), but the technical impact is rated total by CISA SSVC and a vendor patch is available.
User impersonation in Spring Security 7.0.0 through 7.0.4 arises because the SubjectX500PrincipalExtractor mishandles malformed CN values in X.509 client certificates, causing it to extract the wrong username during certificate-based authentication. An attacker presenting a carefully crafted certificate can authenticate as a different user, yielding high confidentiality and integrity impact (CVSS 8.1). There is no public exploit identified at time of analysis, EPSS is negligible (0.02%), and CISA SSVC marks exploitation as none, indicating this is a credible but not-yet-active risk.
Authentication bypass via user impersonation affects Spring Security 7.0.0 through 7.0.4 when X.509 client-certificate authentication is used. The SubjectX500PrincipalExtractor mishandles malformed CN values in X.509 certificates, so a carefully crafted certificate causes the framework to read the wrong field as the username, letting an attacker authenticate as a different user. Tracked as CVSS 8.1 (high) with no public exploit identified at time of analysis; EPSS is very low at 0.02% and CISA SSVC records exploitation status as none.
Spring Security 7.0.0 through 7.0.4 mishandles malformed X.509 certificate CN values in the SubjectX500PrincipalExtractor, allowing authenticated attackers to craft certificates that extract incorrect username values and impersonate other users. The vulnerability requires network access and authenticated privileges but does not require user interaction; it affects certificate-based authentication flows where X.509 principal extraction is used.
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.
Know when Spring 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 X.509 auth (AV:N); crafting a malformed-CN cert accepted by trust chain raises complexity (AC:H); attacker needs a usable certificate (PR:L); impersonation yields C:H/I:H, no availability impact (A:N).
Primary rating from NVD.
CVSS VectorNVD
Lifecycle Timeline
7DescriptionNVD
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.
Blast Radius
ecosystem impact- 183 maven packages depend on org.springframework.security:spring-security-web (25 direct, 158 indirect)
Ecosystem-wide dependent count for version 7.0.0.
Executive ViewAI
Spring Security versions 7.0.0-7.0.4 contain a critical authentication bypass vulnerability affecting certificate-based authentication systems. Authenticated attackers with valid credentials can impersonate other users, including administrators, through malformed X.509 certificate exploitation. Organizations relying on certificate authentication face insider-threat risk where legitimate credential compromise could escalate to unauthorized administrative access.
Within 24 hours: Audit all systems running Spring Security 7.0.0-7.0.4 with X.509 certificate authentication enabled and document asset inventory. Within 7 days: Apply Spring Security patch (confirm specific version from vendor advisory) and redeploy affected applications. Within 30 days: Verify patch deployment across all systems; implement certificate validation logging and anomaly detection for suspicious impersonation attempts.
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
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Related Vulnerabilities in Spring Security Authentication and Authorization
View all 5Access control bypass in SpringBlade v4.5.0 importUser function allows low-privileged users to import sensitive user dat
Spring Cloud Config Server contains a path traversal vulnerability when using the native file system backend, allowing u
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant
SpringBlade v4.5.0 has an access control flaw in authRoutes allowing low-privileged users to escalate to admin through t
Remote code execution in Spring for GraphQL versions 1.3.0-1.3.8, 1.4.0-1.4.5, and 2.0.0-2.0.3 allows unauthenticated at
Server-Sent Events (SSE) stream corruption affects Spring MVC applications built on the functional web framework across
Spring AI versions 1.0.0 through 1.0.4 and 1.1.0 through 1.1.3 allow unauthenticated remote code execution through Sprin
Unsafe JSON deserialization in Spring Framework's JMS message converters (MappingJackson2MessageConverter and JacksonJso
Spring Security Aspects may not correctly locate method security annotations on private methods. Rated critical severity
Safety-guard bypass in the Spring Framework SpEL engine (VMware/Broadcom) lets attacker-controlled expression input esca
Directory traversal in Spring Cloud Config server module allows remote unauthenticated attackers to read arbitrary files
Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.
EUVD-2026-24609
GHSA-2jrg-rf5x-568g
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB