{"id":"CVE-2026-47838","published":"2026-06-09T23:50:07Z","modified":"2026-06-30T21:49:56Z","title":"Unauthorized User Impersonation when Using X.509 Client Certificates","vendor":"Spring","product":"Spring Security","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00133,"percentile":0.0288,"provenance":"source"},"cwes":[{"id":"CWE-287","name":"Improper Authentication"}],"references":[{"url":"https://spring.io/security/cve-2026-47838","tags":[]}],"priority":{"score":5.3,"factors":[{"name":"EPSS percentile","points":0.58},{"name":"CVSS severity","points":4.76}]},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Security","versions":[">= 5.7.0, < 5.7.25",">= 5.8.0, < 5.8.27",">= 6.3.0, < 6.3.18",">= 6.4.0, < 6.4.18",">= 6.5.0, < 6.5.10.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-06-10T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","vulnerableRanges":[">=6.5.0, <6.5.11",">=6.4.0, <=6.4.13",">=6.0.0, <=6.3.10",">=5.8.0, <=5.8.16","<=5.7.14"],"patched":["6.5.11"],"from":["GHSA-293q-567p-wmwq"],"provenance":"source"}],"summary":{"text":"The flaw lies in the SubjectDnX509PrincipalExtractor component of Spring Security, which does not correctly handle certain malformed X.509 certificate CN values and can read the wrong value for the username. An attacker who presents a carefully crafted certificate can impersonate another user, provided they can reach the application over the network and hold a low-privilege account, with the attack relying on a high-complexity condition.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:48Z"},"euvd":{"id":"EUVD-2026-35911","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2026-22747","parents":[{"from":"CVE-2026-22747","to":"CVE-2026-47838","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-293q-567p-wmwq","via":"reference","url":"https://github.com/advisories/GHSA-2jrg-rf5x-568g"}]}],"packageHistory":[{"cve":"CVE-2021-22112","published":"2021-02-23","fixed":"5.4.4","kev":false},{"cve":"CVE-2022-22978","published":"2022-05-19","fixed":"5.6.4","kev":false},{"cve":"CVE-2024-38821","published":"2024-10-28","fixed":"6.3.4","kev":false},{"cve":"CVE-2026-47838","published":"2026-06-09","fixed":"6.5.11","kev":false},{"cve":"CVE-2026-22732","published":"2026-03-19","fixed":"7.0.4","kev":false,"link":{"from":"CVE-2026-22732","to":"CVE-2026-47838","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-web","fromFixed":"6.5.9","toFixed":"6.5.11","daysApart":82}]}},{"cve":"CVE-2026-22747","published":"2026-04-22","fixed":"7.0.5","kev":false},{"cve":"CVE-2026-41706","published":"2026-06-09","fixed":"7.0.6","kev":false}],"package":"Maven:org.springframework.security:spring-security-web"}}