Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreThis CVE is a continuation of CVE-2026-22747, which addressed this same issue for Spring Security 7.0.x.
SubjectDnX509PrincipalExtractor 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 component sits behind Spring Security's pre-authentication flow, which assumes the presented credentials have already been validated by a trusted upstream. Exploiting this issue therefore presupposes a compromise of that upstream trust. So while we recommend upgrading, this fix is better understood as defense-in-depth than as closing a standalone attack path.
Spring Security:
Users of affected versions should upgrade to the corresponding fixed version.
| Affected version(s) | Fix version | Availability |
|---|---|---|
| 5.7.x | 5.7.25 | Enterprise Support Only |
| 5.8.x | 5.8.27 | Enterprise Support Only |
| 6.3.x | 6.3.18 | Enterprise Support Only |
| 6.4.x | 6.4.18 | Enterprise Support Only |
| 6.5.x | 6.5.11 | OSS |
SubjectDnX509PrincipalExtractor is deprecated by this CVE and replaced with SubjectX500PrincipalExtractor.
As part of updating, you should also migrate to SubjectX500PrincipalExtractor.
The issue was identified and responsibly reported by Nikita Markevich.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy