# CVE-2022-3782: Keycloak vulnerable to path traversal via double URL encoding

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 6.17%, higher than 93% of CVEs (2026-12-01)
- Published: 2022-12-13T19:44:56.000Z
- Modified: 2026-06-17T05:00:17.670Z
- Also known as: GHSA-g8q8-fggx-9r3q
- Weaknesses: CWE-22, CWE-177
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- redhat.com Keycloak: from 20.0.2 before 20.0.2
- org.keycloak:keycloak-parent (Maven): before 20.0.2
- redhat keycloak: 20.0.2

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/security/cve/CVE-2022-3782> (vendor-advisory, web)
- <https://github.com/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-3782> (advisory)
- <https://github.com/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37> (web)
- <https://github.com/keycloak/keycloak> (package)

## Sources

- CVE List: [CVE-2022-3782](https://www.cve.org/CVERecord?id=CVE-2022-3782), CVE Terms of Use, modified 2025-04-09
- GitHub Advisory Database: [GHSA-g8q8-fggx-9r3q](https://github.com/advisories/GHSA-g8q8-fggx-9r3q), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-3782](https://nvd.nist.gov/vuln/detail/CVE-2022-3782), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-3782 · Whole record: https://cve.day/CVE-2022-3782.json · Rebuilt by cve.day 2026-11-25T22:58:18.193Z
