{"id":"CVE-2026-47838","summary":"Unauthorized User Impersonation when Using X.509 Client Certificates","details":"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.\n\nAffected versions:\nSpring 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.","aliases":["GHSA-293q-567p-wmwq"],"modified":"2026-07-08T08:13:38.060425Z","published":"2026-06-09T23:50:07.988Z","related":["CGA-5h3g-2c27-cwfm"],"database_specific":{"cna_assigner":"vmware","cwe_ids":["CWE-287"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47838.json","unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"introduced":"5.7.0"},{"fixed":"5.7.25"},{"introduced":"5.8.0"},{"fixed":"5.8.27"},{"introduced":"6.3.0"},{"fixed":"6.3.18"},{"introduced":"6.4.0"},{"fixed":"6.4.18"},{"introduced":"6.5.0"},{"fixed":"6.5.10.2"}]},{"extracted_events":[{"introduced":"5.7.0"},{"fixed":"5.7.24"},{"introduced":"5.8.0"},{"fixed":"5.8.26"},{"introduced":"6.3.0"},{"fixed":"6.3.17"},{"introduced":"6.4.0"},{"fixed":"6.4.17"},{"introduced":"6.5.0"},{"fixed":"6.5.10"}],"source":"DESCRIPTION"}]},"references":[{"type":"WEB","url":"https://spring.io/security/cve-2026-47838"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47838.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47838"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/spring-projects/spring-security","events":[{"introduced":"0fd0e9335ae3a6ff3538045d098dd6b94679d99e"},{"fixed":"73b077790fcb04ac3712033d3e939daf42264545"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"6.5.0"},{"fixed":"6.5.11"}]}}],"versions":["6.5.10","6.5.9","6.5.8","6.5.7","6.5.6","6.5.5","6.5.4","6.5.3","6.5.1","6.5.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-47838.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}