Skip to content
OpenAdvisories
Medium · 6.8 Public exploit CVE-2026-22747 EUVD-2026-24609GHSA-2jrg-rf5x-568g

Unauthorized User Impersonation when Using X.509 Client Certificates

Published Apr 22, 2026 · Updated Jul 15, 2026 · Assigned by vmware

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.

Affected products

VendorProductAffectedFixed
Spring Spring Security 7.0.0 – ≤ 7.0.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi 2.9.0-r3 —
Wolfi rolling apache-nifi-registry 2.9.0-r6 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 2 repositories

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework.security:spring-security-web >= 7.0.0, < 7.0.5 7.0.5 GHSA-2jrg-rf5x-568g

Advisories 6

References