CVE-2026-47838: CWE-287: Improper Authentication in Spring Spring Security
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.
AI Analysis
Technical Summary
The vulnerability CVE-2026-47838 in Spring Security involves improper authentication due to the SubjectDnX509PrincipalExtractor component mishandling malformed X.509 certificate CN values. This mishandling can lead to the extraction of an incorrect username from the certificate, enabling an attacker who crafts a malicious certificate to impersonate another user. The affected versions include 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, and 6.5.0 through 6.5.10. There is no vendor advisory or patch information available at this time, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation allows an attacker to impersonate another user by exploiting the improper handling of malformed X.509 certificate CN values. This can lead to unauthorized access with the privileges of the impersonated user. The vulnerability does not impact availability but has high confidentiality and integrity impact as per the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid trusting certificates from untrusted sources and consider additional authentication checks where possible to mitigate impersonation risks.
CVE-2026-47838: CWE-287: Improper Authentication in Spring Spring Security
Description
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.
CVSS v3.1
Score 6.8medium
Affected software
pkg:maven/org.springframework.security/spring-security-coreRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability CVE-2026-47838 in Spring Security involves improper authentication due to the SubjectDnX509PrincipalExtractor component mishandling malformed X.509 certificate CN values. This mishandling can lead to the extraction of an incorrect username from the certificate, enabling an attacker who crafts a malicious certificate to impersonate another user. The affected versions include 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, and 6.5.0 through 6.5.10. There is no vendor advisory or patch information available at this time, and no known exploits in the wild have been reported.
Potential Impact
Successful exploitation allows an attacker to impersonate another user by exploiting the improper handling of malformed X.509 certificate CN values. This can lead to unauthorized access with the privileges of the impersonated user. The vulnerability does not impact availability but has high confidentiality and integrity impact as per the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, avoid trusting certificates from untrusted sources and consider additional authentication checks where possible to mitigate impersonation risks.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- vmware
- Date Reserved
- 2026-05-20T10:00:51.003Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a28a80c8dd33fbd8595f590
Added to database: 06/09/2026, 23:55:56 UTC
Last enriched: 06/30/2026, 23:40:14 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 142
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.