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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| redhat.com | Keycloak | 20.0.2 – < 20.0.2 | 20.0.2 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 18.0.3-1.redhat_00002.1.el7sso | RHSA-2022:8963, RHSA-2022:8962, RHSA-2022:8961 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
shoucheng3/keycloak__keycloak_CVE-2022-3782_20-0-1 ★ 0 · Aug 18, 2025
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | < 20.0.2 | 20.0.2 | GHSA-g8q8-fggx-9r3q |
Advisories 5
- RHSA-2022:8963 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 9 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2022:8961 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 7 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- RHSA-2022:8962 Red Hat Security Advisory: Red Hat Single Sign-On 7.6.1 security update on RHEL 8 Red Hat Security Advisories (RHSA) · Sep 22, 2026
- WID-SEC-2023-0200 Keycloak: Schwachstelle ermöglicht Umgehen von Sicherheitsvorkehrungen BSI CERT-Bund (WID) · Feb 19, 2024
- WID-SEC-2023-0864 Red Hat JBoss A-MQ: Mehrere Schwachstellen BSI CERT-Bund (WID) · May 18, 2023