{"id":"CVE-2026-22747","summary":"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":["GHSA-2jrg-rf5x-568g"],"modified":"2026-07-16T03:31:02.007585503Z","published":"2026-04-22T05:08:41.318Z","related":["CGA-53fx-c46p-vwc9"],"database_specific":{"cna_assigner":"vmware","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json","unresolved_ranges":[{"extracted_events":[{"introduced":"7.0.0"},{"last_affected":"7.0.4"}],"source":"AFFECTED_FIELD"},{"source":"DESCRIPTION","extracted_events":[{"introduced":"7.0.0"},{"fixed":"7.0.4"}]}]},"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json"},{"type":"WEB","url":"https://spring.io/security/cve-2026-22747"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2026-22747"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22747"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460487"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/spring-projects/spring-security","events":[{"introduced":"1d99a7fb14c62354cac00412cce2071892cdf465"},{"fixed":"53bc6a77963209bb2a5f3efdd855b1f4a8051cc3"}],"database_specific":{"cpe":"cpe:2.3:a:vmware:spring_security:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"7.0.0"},{"fixed":"7.0.5"}],"source":"CPE_RANGE"}}],"versions":["7.0.4","7.0.3","7.0.2","7.0.1","7.0.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-22747.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"}]}