CVE-2026-22747

Unauthorized User Impersonation when Using X.509 Client Certificates

Published Apr 22, 2026 CVSS 3.1 · 6.8 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

Spring Security’s SubjectX500PrincipalExtractor does not handle certain malformed X.509 certificate CN values correctly, causing the wrong value to be interpreted as the authenticated username. A crafted certificate can therefore allow an attacker to impersonate another user for whom a valid certificate is not required.

Affected Systems

Spring Security from version 7.0.0 through 7.0.4.

Risk and Exploitability

The vulnerability has a CVSS score of 6.8, and an EPSS score of < 1%, indicating a very low probability of exploitation, and it is not listed in the CISA KEV catalog. Exploitation requires an application that accepts X.509 client certificates; the attacker would need to supply a specially crafted certificate, and if successful the victim’s session would be bound to the forged identity, granting access to resources normally denied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the version of Spring Security that contains the patch for this certificate parsing issue, as released by the vendor
  • If upgrading cannot be performed immediately, disable X.509 client certificate authentication in the affected application until a patch is applied
  • Add custom validation to the X.509 certificate’s CN field before it is used for authentication to mitigate the flaw

Generated by OpenCVE AI on April 28, 2026 at 21:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-2jrg-rf5x-568g Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates
History
Type Values Removed Values Added
Weaknesses CWE-287
CWE-374
Type Values Removed Values Added
First Time appeared Vmware
Vmware spring Security
CPEs cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*
Vendors & Products Vmware
Vmware spring Security
Type Values Removed Values Added
Weaknesses CWE-297
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Spring
Spring spring Security
Vendors & Products Spring
Spring spring Security
Type Values Removed Values Added
Weaknesses CWE-287
CWE-374
Type Values Removed Values Added
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.
Title Unauthorized User Impersonation when Using X.509 Client Certificates
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-295

    Improper Certificate Validation

  • CWE-297

    Improper Validation of Certificate with Host Mismatch

Sources

Status
PUBLISHED
Assigner
vmware
Published
Updated
Jul 15, 2026, 1:19 AM
Reserved
Jan 9, 2026, 6:55 AM
Status
Modified
Published
Apr 22, 2026, 6:16 AM
Modified
Oct 26, 2026, 10:10 PM
Severity
Important
Public date
Apr 22, 2026, 5:08 AM