CVE-2026-22747: Unauthorized User Impersonation when Using X.509 Client Certificates
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.
Security readout for executives and security teams
Plain-English summary
This flaw can let a user with a specially malformed client certificate be recognized as a different user. It matters most where Spring Security uses X.509 client certificates for login and maps the certificate CN to the application username.
Executive priority
Treat as high priority for mTLS or certificate-login applications because successful abuse could become account impersonation. Prioritize internet-facing, partner-facing, and privileged-user portals first.
Technical view
Spring Security 7.0.0 through 7.0.4 mishandles some malformed X.509 certificate CN values in SubjectX500PrincipalExtractor. The parser may read the wrong CN-derived username, creating an impersonation risk with high confidentiality and integrity impact.
Likely exposure
Exposure is likely limited to applications on Spring Security 7.0.0-7.0.4 that use X.509 client certificate authentication with CN-based username extraction. Deployments not using that authentication path are less likely affected based on the provided sources.
Exploitation context
The CVE is not listed as KEV, and the provided sources do not state active exploitation. The CVSS vector indicates network reachability, low attack complexity, no user interaction, and low privileges required.
Researcher notes
Evidence supports a parser or name-extraction flaw in SubjectX500PrincipalExtractor, mapped to CWE-295 and CWE-297. The bundle does not include exploit details, confirmed exploitation, or a specific fixed version, so remediation should follow Spring guidance.
Mitigation direction
Check the Spring advisory for the vendor-named fixed release or workaround.
Inventory Spring Security versions and prioritize 7.0.0 through 7.0.4.
Review X.509 authentication paths that rely on certificate CN username extraction.
Temporarily tighten client-certificate issuance and identity mapping controls.
Monitor authentication logs for unexpected certificate-subject to username mappings.
Validation and detection
Confirm whether applications use Spring Security 7.0.0 through 7.0.4.
Identify use of SubjectX500PrincipalExtractor or CN-based X.509 principal extraction.
Review authentication tests for malformed certificate subject handling without adding exploit detail.
Check certificate enrollment controls for who can obtain client certificates.
Look for login events where certificate identity and application account differ unexpectedly.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-295: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
2CVSS vectors
5Timeline events
2ADP providers
5Source links
SSVC decision data
CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: total
CVSS vector scores
2 official scores
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-295 · source CWE mapping
Improper Certificate Validation
Improper Certificate Validation represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Validation of Certificate with Host Mismatch
Improper Validation of Certificate with Host Mismatch represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.