{"schemaVersion":3,"id":"CVE-2026-22747","aliases":["CGA-7jf4-4c5r-w732","CGA-hjc4-936c-qxjf","CGA-jpjg-82vp-6748","CGA-mr6f-w73v-q5vx","CGA-956p-xf8g-2xgq","GHSA-2jrg-rf5x-568g"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-04-22T05:08:41.318Z","modified":"2026-07-15T01:19:29.723Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":8.1,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Wolfi","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Chainguard","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":6.8,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":4.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00296,"percentile":0.20792,"severity":"low","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.00296},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00296,"percentile":0.20792}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00296,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00296,"percentile":0.20792}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-297","name":"Improper Validation of Certificate with Host Mismatch","description":"The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host.","type":"weakness","status":"Incomplete","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/297.html"},{"id":"CWE-295","name":"Improper Certificate Validation","description":"The product does not validate, or incorrectly validates, a certificate.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/295.html"}],"affected":[{"vendor":"chainguard","product":"apache-nifi","name":"apache-nifi","label":"apache-nifi","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/apache-nifi","purlType":"apk","versions":[{"text":"< 2.9.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r3","eol":null,"hubHref":null},{"vendor":"chainguard","product":"apache-nifi-registry","name":"apache-nifi-registry","label":"apache-nifi-registry","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/apache-nifi-registry","purlType":"apk","versions":[{"text":"< 2.9.0-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r6","eol":null,"hubHref":null},{"vendor":"chainguard","product":"camunda-zeebe-8.9","name":"camunda-zeebe-8.9","label":"camunda-zeebe-8.9","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/camunda-zeebe-8.9","purlType":"apk","versions":[{"text":"< 8.9.1-r2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.9.1-r2","eol":null,"hubHref":null},{"vendor":"wolfi","product":"apache-nifi","name":"apache-nifi","label":"apache-nifi","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/apache-nifi","purlType":"apk","versions":[{"text":"< 2.9.0-r3","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r3","eol":null,"hubHref":null},{"vendor":"wolfi","product":"apache-nifi-registry","name":"apache-nifi-registry","label":"apache-nifi-registry","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/apache-nifi-registry","purlType":"apk","versions":[{"text":"< 2.9.0-r6","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.9.0-r6","eol":null,"hubHref":null},{"vendor":"org.springframework.security","product":"spring-security-web","name":"org.springframework.security:spring-security-web","label":"spring-security-web","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.springframework.security/spring-security-web","purlType":"maven","versions":[{"text":"≥ 7.0.0, < 7.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.0.5","eol":{"isEol":null,"eolDate":null,"matchMethod":"purl","cycle":null,"product":{"name":"spring-security","label":"Spring Security","category":"framework"}},"hubHref":null},{"vendor":"spring","product":"spring security","name":"Spring Security","label":"spring security","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, ≤ 7.0.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, ≤ 7.0.4","eol":null,"hubHref":"/vendor/spring/spring_security"},{"vendor":"vmware","product":"spring_security","name":"spring security","label":"spring_security","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 7.0.0, < 7.0.5","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 7.0.0, < 7.0.5","eol":null,"hubHref":"/vendor/vmware/spring_security"}],"affectedCount":8,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://spring.io/security/cve-2026-22747","label":"spring.io/security/cve-2026-22747","hostname":"spring.io","tags":["WEB","Vendor Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-22747","label":"access.redhat.com/security/cve/CVE-2026-22747","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2460487","label":"bugzilla.redhat.com/show_bug.cgi?id=2460487","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-22747.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex","WEB"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json","label":"github.com/CVEProject/cvelistV5/tree/main/cves/2026/22xxx/CVE-2026-22747.json","hostname":"github.com","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-22747","label":"nvd.nist.gov/vuln/detail/CVE-2026-22747","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3","label":"github.com/spring-projects/spring-security/commit/88118afb8f9357ae7cc215500a441e89fee701c3","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/spring-projects/spring-security","label":"github.com/spring-projects/spring-security","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":["CGA-53FX-C46P-VWC9"]},"timeline":[{"kind":"published","date":"2026-04-22T05:08:41.318Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:19:29.723Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":32,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:22:00.823Z","stale":false,"partial":false}}