{"id":"CVE-2026-47838","aliases":["CVE-2026-47838","GHSA-293q-567p-wmwq"],"related":[],"kind":"vulnerability","state":"published","title":"Unauthorized User Impersonation when Using X.509 Client Certificates","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n`SubjectDnX509PrincipalExtractor` is deprecated by this CVE and replaced with `SubjectX500PrincipalExtractor`. As part of updating, you should also migrate to `SubjectX500PrincipalExtractor`.\n\nAffected versions:\nSpring 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. \nOSS 6.5.0 through 6.5.10.","format":"markdown","source":"ghsa"},{"lang":"es","text":"SubjectDnX509PrincipalExtractor no maneja correctamente ciertos valores CN malformados de certificados X.509, lo que puede llevar a la lectura de un valor incorrecto para el nombre de usuario. En un certificado cuidadosamente elaborado, esto puede llevar a un atacante suplantando a otro usuario.\n\nVersiones afectadas:\nSpring Security 5.7.0 a 5.7.24; 5.8.0 a 5.8.26; 6.3.0 a 6.3.17; 6.4.0 a 6.4.17; 6.5.0 a 6.5.10.","source":"nvd"}],"published":"2026-06-09T23:50:07.988Z","modified":"2026-09-10T03:51:07.677Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","score":6.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-287"],"affected":[{"ranges":[{"type":"custom","introduced":"5.7.0","fixed":"5.7.25","status":"affected"},{"type":"custom","introduced":"5.8.0","fixed":"5.8.27","status":"affected"},{"type":"custom","introduced":"6.3.0","fixed":"6.3.18","status":"affected"},{"type":"custom","introduced":"6.4.0","fixed":"6.4.18","status":"affected"},{"type":"custom","introduced":"6.5.0","fixed":"6.5.10.2","status":"affected"}],"vendor":"Spring","product":"Spring Security","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"6.5.0","status":"affected","fixed":"6.5.11"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.4.0","status":"affected","lastAffected":"6.4.13"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"6.0.0","status":"affected","lastAffected":"6.3.10"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.8.0","status":"affected","lastAffected":"5.8.16"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"5.7.14"}],"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","purl":"pkg:maven/org.springframework.security/spring-security-web","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"5.7.25"},{"status":"affected","introduced":"5.8.0","fixed":"5.8.27"},{"status":"affected","introduced":"6.3.0","fixed":"6.3.18"},{"status":"affected","introduced":"6.4.0","fixed":"6.4.18"},{"status":"affected","introduced":"6.5.0","fixed":"6.5.11"}],"vendor":"vmware","product":"spring_security","cpe":"cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://spring.io/security/cve-2026-47838","tags":["vendor-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47838","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-2jrg-rf5x-568g","tags":["advisory"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-06-10T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47838","url":"https://www.cve.org/CVERecord?id=CVE-2026-47838","licence":"CVE Terms of Use","modified":"2026-06-30T21:49:56.180Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-293q-567p-wmwq","url":"https://github.com/advisories/GHSA-293q-567p-wmwq","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:07.677Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47838","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47838","licence":"Public domain","modified":"2026-07-23T09:10:00.113Z"}],"updatedAt":"2026-11-25T22:59:24.302Z","epss":{"score":0.00133,"percentile":0.03012,"date":"2026-12-01T12:00:22.000Z"}}