Home

Description

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. Affected versions: Spring Security 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.

PUBLISHED Reserved 2026-05-20 | Published 2026-06-09 | Updated 2026-06-10 | Assigner vmware




MEDIUM: 6.8CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

Problem types

CWE-287: Improper Authentication

Product status

Default status
unaffected

5.7.0 (custom) before 5.7.25
affected

5.8.0 (custom) before 5.8.27
affected

6.3.0 (custom) before 6.3.18
affected

6.4.0 (custom) before 6.4.18
affected

6.5.0 (custom) before 6.5.11
affected

References

spring.io/security/cve-2026-47838

cve.org (CVE-2026-47838)

nvd.nist.gov (CVE-2026-47838)

Download JSON