Skip to main content

Spring Security CVE-2026-47838

| EUVDEUVD-2026-35911 HIGH
Improper Authentication (CWE-287)
2026-06-10 security@vmware.com GHSA-293q-567p-wmwq
8.1
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Spring app using X.509 auth
  2. Delivery
    Obtain certificate from trusted CA with crafted CN
  3. Exploit
    Initiate mutual TLS handshake
  4. Execution
    SubjectDnX509PrincipalExtractor misparses CN
  5. Persist
    Spring loads victim's UserDetails
  6. Impact
    Operate 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv3 – 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)
v2 Jun 18, 2026 - 03:48 cvss changed CVSS 8.1

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.

v1 Jun 10, 2026 - 00:46 CVSS 6.8

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

Spring Security 6.4.0 <6.4.18
Spring Security 5.7.0 <5.7.25
Spring Security 5.8.0 <5.8.27
Spring Security 6.5.0 <6.5.11
Spring Security 6.3.0 <6.3.18

Affected Packages

maven org.springframework.security:spring-security-web fix: 6.5.11
euvd spring_security fix: 5.7.25, 5.8.27, 6.3.18, 6.4.18, 6.5.11

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

Vendor (vmware) PRIMARY MEDIUM
NVD 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 8.1 HIGH

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).

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (vmware).

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

5
Analysis Updated
Jun 18, 2026 - 03:48 vuln.today
v3 - CVSS changed
Analysis Updated
Jun 18, 2026 - 03:48 vuln.today
v2 - CVSS changed
Severity Changed
Jun 18, 2026 - 03:38 NVD
MEDIUM HIGH
CVSS changed
Jun 18, 2026 - 03:38 NVD
6.8 (MEDIUM) 8.1 (HIGH)
Patch available
Jun 10, 2026 - 02:01 EUVD

DescriptionNVD

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2014-3527 CRITICAL
9.8 May 25

When using the CAS Proxy ticket authentication from Spring Security 3.1 to 3.2.4 a malicious CAS Service could trick ano

CVE-2023-34034 CRITICAL
9.8 Jul 19

Using "**" as a pattern in Spring Security configuration for WebFlux creates a mismatch in pattern matching between Spri

CVE-2022-31692 CRITICAL
9.8 Oct 31

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

CVE-2022-22978 CRITICAL
9.8 May 19

In spring security versions prior to 5.4.11+, 5.5.7+ , 5.6.4+ and older unsupported versions, RegexRequestMatcher can ea

CVE-2026-22752 CRITICAL
9.6 Jul 16

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

CVE-2023-34035 MEDIUM POC
5.3 Jul 18

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

CVE-2018-1258 HIGH
8.8 May 11

Spring Framework version 5.0.5 when used in combination with any versions of Spring Security contains an authorization b

CVE-2026-111235 CRITICAL
9.1 Oct 15

Unauthenticated authorization bypass in the OpenNMS Meridian and Horizon REST API lets any remote attacker who can reach

CVE-2026-59270 CRITICAL
9.1 Aug 27

Improper authorization in Spring Security's embedded UnboundID test LDAP server (UnboundIdContainer) exposes an administ

CVE-2026-22732 CRITICAL POC
9.1 Mar 19

Spring Security fails to properly write HTTP response headers in servlet applications across multiple versions (5.7.0-5.

CVE-2021-22112 HIGH
8.8 Feb 23

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

CVE-2020-5407 HIGH
8.8 May 13

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy