{"schemaVersion":3,"id":"CVE-2022-3782","aliases":["GHSA-g8q8-fggx-9r3q"],"status":"published","duplicateOf":null,"title":null,"description":"keycloak: path traversal via double URL encoding. A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. An attacker can use this flaw to construct a malicious request to bypass validation and access other URLs and potentially sensitive information within the domain or possibly conduct further attacks. This flaw affects any client that utilizes a wildcard in the Valid Redirect URIs field.","dates":{"published":"2023-01-11T16:58:10.434Z","modified":"2025-04-09T13:42:27.268Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/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":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.05796,"percentile":0.93042,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.05796},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05796,"percentile":0.93042}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.05796,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.05796,"percentile":0.93042}]},"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-22","name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/22.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-parent","name":"org.keycloak:keycloak-parent","label":"keycloak-parent","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-parent","purlType":"maven","versions":[{"text":"< 20.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 20.0.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"keycloak","name":"keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"20.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"20.0.2","eol":{"isEol":true,"eolDate":"2023-02-23T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"20.0","label":"20.0","eolFrom":"2023-02-23T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"20.0.5"},"product":{"name":"keycloak","label":"Keycloak","category":"server-app"}},"hubHref":"/vendor/redhat/keycloak"},{"vendor":"redhat.com","product":"keycloak","name":"Keycloak","label":"keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 20.0.2, < 20.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 20.0.2, < 20.0.2","eol":null,"hubHref":"/vendor/redhatcom/keycloak"}],"affectedCount":3,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://access.redhat.com/security/cve/CVE-2022-3782","label":"access.redhat.com/security/cve/CVE-2022-3782","hostname":"access.redhat.com","tags":["WEB","Vendor Advisory"]},{"url":"https://github.com/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q","label":"github.com/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q","hostname":"github.com","tags":["WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-3782","label":"nvd.nist.gov/vuln/detail/CVE-2022-3782","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37","label":"github.com/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2022:8961","RHSA-2022:8962","RHSA-2022:8963"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2023-01-11T16:58:10.434Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2025-04-09T13:42:27.268Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T08:10:50.018Z","stale":false,"partial":false}}