{"id":"CVE-2022-3782","published":"2023-01-11T16:58:10Z","modified":"2025-04-09T13:42:27Z","title":"keycloak: path traversal via double URL encoding","vendor":"redhat.com","product":"Keycloak","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.06173,"percentile":0.93659,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2022-3782","tags":[]}],"priority":{"score":25.1,"factors":[{"name":"EPSS percentile","points":18.73},{"name":"CVSS severity","points":6.37}]},"vendorSlug":"redhat-com","affectedVersions":[{"vendor":"redhat.com","product":"Keycloak","versions":[">= 20.0.2, < 20.0.2"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2025-04-09T13:41:56.012730Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-parent","vulnerableRanges":["<20.0.2"],"patched":["20.0.2"],"from":["GHSA-g8q8-fggx-9r3q"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal issue in Keycloak, where URLs included in a redirect are not properly validated, allowing traversal through double URL encoding. An attacker can craft a malicious request that bypasses validation to reach other URLs and potentially sensitive information within the domain, and it affects any client that uses a wildcard in the Valid Redirect URIs field; the attack vector is network-based and requires no privileges or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T07:24:37Z"},"euvd":{"id":"EUVD-2022-7628","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-red-hat-build-of-keycloak-22-cve-2020-10748","children":[{"from":"CVE-2022-3782","to":"CVE-2022-4361","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java"],"commits":["https://github.com/keycloak/keycloak/commit/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37","https://github.com/keycloak/keycloak/commit/a1cfe6e24e5b34792699a00b8b4a8016a5929e3a"],"basis":"shared function","functions":["verifyRedirectUri"]}]},{"from":"CVE-2022-3782","to":"CVE-2023-6134","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["services/src/main/java/org/keycloak/protocol/oidc/utils/RedirectUtils.java"],"commits":["https://github.com/keycloak/keycloak/commit/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37","https://github.com/keycloak/keycloak/commit/15a21bf8e4fb71f006ba9caf25b9c9d1d152cd20"],"basis":"shared function","functions":["verifyRedirectUri"]}]}]}}