{"id":"CVE-2026-22747","published":"2026-04-22T05:08:41Z","modified":"2026-07-15T01:19:29Z","title":"Unauthorized User Impersonation when Using X.509 Client Certificates","vendor":"Spring","product":"Spring Security","tier":"tail","description":{"text":"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.","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.00249,"percentile":0.16544,"provenance":"source"},"cwes":[{"id":"CWE-297","name":"Improper Validation of Certificate with Host Mismatch"},{"id":"CWE-295","name":"Improper Certificate Validation"}],"references":[{"url":"https://spring.io/security/cve-2026-22747","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22747","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460487","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":13.1,"factors":[{"name":"EPSS percentile","points":3.31},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":4.76}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2026-10-19","earliestUrl":"https://github.com/yakissa/CVE-2026-22747","repos":[{"name":"yakissa/CVE-2026-22747","url":"https://github.com/yakissa/CVE-2026-22747","stars":0,"created":"2026-10-19"}]},"first":{"date":"2026-10-19","source":"PoC-in-GitHub","url":"https://github.com/yakissa/CVE-2026-22747"},"provenance":"source"},"vendorSlug":"spring","affectedVersions":[{"vendor":"Spring","product":"Spring Security","versions":[">= 7.0.0, <= 7.0.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-04-22T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.springframework.security:spring-security-web","vulnerableRanges":[">=7.0.0, <7.0.5"],"patched":["7.0.5"],"from":["GHSA-2jrg-rf5x-568g"],"provenance":"source"}],"summary":{"text":"Spring Security's SubjectX500PrincipalExtractor component mishandles certain malformed X.509 certificate CN values, causing it to read the wrong value for the username. An attacker who has network access and low-privilege authentication can present a carefully crafted client certificate to impersonate another user, with no user interaction or special configuration required beyond using X.509 client certificates.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:12:10Z"},"euvd":{"id":"EUVD-2026-24609","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-spring-security-cve-2026-22747","children":[{"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-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-22747","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-web","fromFixed":"7.0.4","toFixed":"7.0.5","daysApart":34}]}},{"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,"link":{"from":"CVE-2026-22747","to":"CVE-2026-41706","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.springframework.security:spring-security-web","fromFixed":"7.0.5","toFixed":"7.0.6","daysApart":48}]}}],"package":"Maven:org.springframework.security:spring-security-web"}}