CVE-2022-3782
keycloak: path traversal via double URL encoding
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high).
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| maven::GitHub Security Advisory Maven | org.keycloak:keycloak-parent | 20.0.2 |
References
- https://access.redhat.com/security/cve/CVE-2022-3782
- https://github.com/keycloak/keycloak
- https://github.com/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37
- https://github.com/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q
- https://nvd.nist.gov/vuln/detail/CVE-2022-3782
- https://www.cve.org/CVERecord?id=CVE-2022-3782