CVE-2026-22747 Details
Description
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.
A vulnerability exists in Spring Security versions 7.0.0 prior to 7.0.4, within the 'SubjectX500PrincipalExtractor' component. This issue arises because the extractor does not properly manage certain malformed X.509 certificate Common Name (CN) values. As a result, it can misread the username, potentially allowing an attacker to impersonate another user by exploiting a carefully crafted certificate. This vulnerability is situated within Spring Security's pre-authentication flow, which relies on credentials being validated by a trusted source upstream. Therefore, exploiting this issue assumes a compromise of that trust.
Users should upgrade to Spring Security version 7.0.5, which addresses this vulnerability. This fix is available in the open-source version.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2026-22747 | redhat-SADP | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2460487 | redhat-SADP | |
| https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json | redhat-SADP | |
| https://spring.io/security/cve-2026-22747 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-295 | Improper Certificate Validation | redhat-SADP |
| CWE-297 | Improper Validation of Certificate with Host Mismatch | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| vmware spring security | >= 7.0.0, < 7.0.5 |
CPE
Remediation
| |
Change History
8 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 26, 2026 | CVE Translated | [email protected] |
| Jul 15, 2026 | CVE Modified | redhat-SADP |
| Jun 30, 2026 | CVE Modified | redhat-SADP |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 24, 2026 | Initial Analysis | [email protected] |
| Apr 22, 2026 | CVE Modified | CISA-ADP |
| Apr 22, 2026 | New CVE Received | [email protected] |