6.8Medium

CVE-2026-22747Unauthorized User Impersonation when Using X.509 Client Certificates

Spring Spring Security; Red Hat OpenShift Developer Tools and Services; Red Hat Red Hat build of Apache Camel for Spring Boot 4; Red Hat Red Hat build of Apach… Published: (6 months ago)

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.

Weakness (CWE): CWE-297CWE-295

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:* ≥ 7.0.0 < 7.0.5