In Spring Security Web, `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. `SubjectDnX509PrincipalExtractor` is deprecated by this CVE and replaced with `SubjectX500PrincipalExtractor`. As part of updating, you should also migrate to `SubjectX500PrincipalExtractor`. Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.
Update org.springframework.security:spring-security-web to 6.5.11 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanSpring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates affects org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven). Severity is medium. In Spring Security Web, `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. `SubjectDnX509PrincipalExtractor` is deprecated by this CVE and replaced with `SubjectX500PrincipalExtractor`. As part of updating, you should also migrate to `SubjectX500PrincipalExtractor`. Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.
AI coding agents often install or upgrade packages automatically in maven. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
In Spring Security Web, `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. `SubjectDnX509PrincipalExtractor` is deprecated by this CVE and replaced with `SubjectX500PrincipalExtractor`. As part of updating, you should also migrate to `SubjectX500PrincipalExtractor`. Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.
Update org.springframework.security:spring-security-web to 6.5.11 if you use the affected versions. Test the change in a non-production environment first.
Local check
hol-guard supply-chain scanSpring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates affects org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven), org.springframework.security:spring-security-web (maven). Severity is medium. In Spring Security Web, `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. `SubjectDnX509PrincipalExtractor` is deprecated by this CVE and replaced with `SubjectX500PrincipalExtractor`. As part of updating, you should also migrate to `SubjectX500PrincipalExtractor`. Affected versions: Spring Security Enterprise 5.7.0 through 5.7.24; 5.8.0 through 5.8.26; 6.3.0 through 6.3.17; 6.4.0 through 6.4.17; 6.5.0 through 6.5.10. OSS 6.5.0 through 6.5.10.
AI coding agents often install or upgrade packages automatically in maven. A medium vulnerability in a dependency can be pulled into a project through a normal install or update without a human reviewing the change, expanding the blast radius from a single package to every agent workspace that depends on it.
| Package | Affected range | Fixed version |
|---|
| org.springframework.security:spring-security-webmaven | >=6.5.0,<=6.5.10 | 6.5.11 |
|---|---|---|
| org.springframework.security:spring-security-webmaven | >=6.4.0,<=6.4.13 | Not reported |
| org.springframework.security:spring-security-webmaven | >=6.0.0,<=6.3.10 | Not reported |
| org.springframework.security:spring-security-webmaven | >=5.8.0,<=5.8.16 | Not reported |
| org.springframework.security:spring-security-webmaven | <=5.7.14 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard| Package | Affected range | Fixed version |
|---|
| org.springframework.security:spring-security-webmaven | >=6.5.0,<=6.5.10 | 6.5.11 |
|---|---|---|
| org.springframework.security:spring-security-webmaven | >=6.4.0,<=6.4.13 | Not reported |
| org.springframework.security:spring-security-webmaven | >=6.0.0,<=6.3.10 | Not reported |
| org.springframework.security:spring-security-webmaven | >=5.8.0,<=5.8.16 | Not reported |
| org.springframework.security:spring-security-webmaven | <=5.7.14 | Not reported |
Fixed versions are reported by the source feed; confirm compatibility before updating.
Reported by GitHub Security Advisories (ghsa).
HOL Guard can help your team review package activity against supported protection paths.
Explore HOL Guard