Input validation error in Spring Security - CVE-2026-22747

 

Input validation error in Spring Security - CVE-2026-22747

Published: April 27, 2026


Vulnerability identifier: #VU128228
CSH Severity: Low
CVSS v4: 7.6 [CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-22747
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote user to impersonate another user.

The vulnerability exists due to improper input validation in SubjectX500PrincipalExtractor when processing malformed X.509 certificate CN values. A remote user can present a carefully crafted certificate to impersonate another user.

Exploitation presupposes compromise of a trusted upstream that validates the presented credentials in the pre-authentication flow.


Affected software

Spring Security

How to mitigate CVE-2026-22747

Install security update from vendor's website.

Spring Security - update to 7.0.5

External References

Related Security Bulletins