{"id":"GHSA-2jrg-rf5x-568g","summary":"Spring Security Vulnerable to Unauthorized User Impersonation when Using X.509 Client Certificates","details":"Vulnerability in Spring Spring Security. SubjectX500PrincipalExtractor 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.\nThis issue affects Spring Security: from 7.0.0 through 7.0.4.","aliases":["CVE-2026-22747"],"modified":"2026-07-17T21:09:32.399551245Z","published":"2026-04-22T06:30:28Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2026-04-29T20:44:36Z","nvd_published_at":"2026-04-22T06:16:03Z","cwe_ids":["CWE-297"],"severity":"MODERATE"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22747"},{"type":"WEB","url":"https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3"},{"type":"PACKAGE","url":"https://github.com/spring-projects/spring-security"},{"type":"WEB","url":"https://spring.io/security/cve-2026-22747"}],"affected":[{"package":{"name":"org.springframework.security:spring-security-web","ecosystem":"Maven","purl":"pkg:maven/org.springframework.security/spring-security-web"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"7.0.0"},{"fixed":"7.0.5"}]}],"versions":["7.0.0","7.0.1","7.0.2","7.0.3","7.0.4"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/04/GHSA-2jrg-rf5x-568g/GHSA-2jrg-rf5x-568g.json","last_known_affected_version_range":"\u003c= 7.0.4"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N"}]}