Path traversal in Red Hat Keycloak
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Partial Red Hat: 12 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Keycloak | 20.0.2 to before 20.0.2 | 20.0.2 | Patch available | CNA |
| — | org.keycloak:keycloak-parent (Maven) | before 20.0.2 | 20.0.2 | Patch available | GHSA-g8q8-fggx-9r3q |
- Keycloak VendorRed Hat Affected 20.0.2 to before 20.0.2 Fixed in 20.0.2 Patch available CNA
- org.keycloak:keycloak-parent (Maven) Vendor— Affected before 20.0.2 Fixed in 20.0.2 Patch available GHSA-g8q8-fggx-9r3q
Remediation
- Fix · CNA Keycloak (redhat.com) Fixed in 20.0.2
- Fix · GHSA-g8q8-fggx-9r3q org.keycloak:keycloak-parent (Maven) Fixed in 20.0.2 Advisory →
Red Hat 13 advisories
- RHSA-2023:3815 Released 2023-06-27 · Red Hat rating ImportantService Registry (container images) release and security update [2.4.3 GA]
- RHINT Service Registry 2.4.3 GA
- RHSA-2023:3185 Released 2023-05-17 · Red Hat rating ImportantRed Hat AMQ Broker 7.10.3 release and security update
- AMQ Broker 7.10.3
- RHSA-2023:2135 Released 2023-05-04 · Red Hat rating ImportantRed Hat Process Automation Manager 7.13.3 security update
- RHPAM 7.13.1 async
Show 10 more Red Hat advisories
- RHSA-2023:2041 Released 2023-04-27 · Red Hat rating ImportantMigration Toolkit for Applications security and bug fix update
- MTA 6.1 for RHEL 8 mta/mta-windup-addon-rhel8
- RHSA-2023:1661 Released 2023-04-05 · Red Hat rating ImportantRed Hat AMQ Broker 7.11.0 release and security update
- AMQ Broker 7.11.0
- RHSA-2023:1285 Released 2023-03-16 · Red Hat rating ImportantMigration Toolkit for Runtimes security bug fix and enhancement update
- Migration Toolkit for Runtimes 1 on RHEL 8
- RHSA-2023:1049 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 security update
- Red Hat Single Sign-On 7
- RHSA-2023:1047 Released 2023-03-01 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.2 for OpenShift image security and enhancement update
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
- RHSA-2022:8964 Released 2022-12-13 · Red Hat rating Importantupdated rh-sso-7/sso76-openshift-rhel8 container and operator related images
- Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8
- RHSA-2022:8965 Released 2022-12-13 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.1 security update
- Red Hat Single Sign-On 7.6.1
- RHSA-2022:8963 Released 2022-12-13 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.1 security update on RHEL 9
- Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el9sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el9sso
- RHSA-2022:8962 Released 2022-12-13 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.1 security update on RHEL 8
- Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el8sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el8sso
- RHSA-2022:8961 Released 2022-12-13 · Red Hat rating ImportantRed Hat Single Sign-On 7.6.1 security update on RHEL 7
- Red Hat Single Sign-On 7.6 for RHEL 7 Server rh-sso7-keycloak-18.0.3-1.redhat_00002.1.el7sso, rh-sso7-keycloak-server-18.0.3-1.redhat_00002.1.el7sso
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix yet: Fix deferred |
| Red Hat JBoss Enterprise Application Platform 6 | Affected | No fix planned: Out of support scope |
| Red Hat build of Quarkus | Affected | No fix yet |
| AMQ Broker 7.10.3 | Fixed | RHSA-2023:3185 |
| AMQ Broker 7.11.0 | Fixed | RHSA-2023:1661 |
| MTA 6.1 for RHEL 8 | Fixed | RHSA-2023:2041 |
| Middleware Containers for OpenShift | Fixed | RHSA-2022:8964, RHSA-2023:1047 |
| Migration Toolkit for Runtimes 1 on RHEL 8 | Fixed | RHSA-2023:1285 |
| RHINT Service Registry 2.4.3 GA | Fixed | RHSA-2023:3815 |
| RHPAM 7.13.1 async | Fixed | RHSA-2023:2135 |
| Red Hat Single Sign-On 7 | Fixed | RHSA-2023:1049 |
| Red Hat Single Sign-On 7.6 for RHEL 7 Server | Fixed | RHSA-2022:8961 |
| Red Hat Single Sign-On 7.6 for RHEL 8 | Fixed | RHSA-2022:8962 |
| Red Hat Single Sign-On 7.6 for RHEL 9 | Fixed | RHSA-2022:8963 |
| Red Hat Single Sign-On 7.6.1 | Fixed | RHSA-2022:8965 |
Not affected: 5 products
- MTA 6.1 for RHEL 8
- Middleware Containers for OpenShift
- Red Hat Data Grid 8
- Red Hat JBoss Data Grid 7
- Red Hat JBoss Enterprise Application Platform 7
Timeline
- 2026-10-02 Threatist record created from CVE-2022-3782
- 2026-10-03 Alias added: GHSA-g8q8-fggx-9r3q
References
Advisory 2
More Red Hat Keycloak vulnerabilities
- TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
- TI-2023-26623 The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6… CVSS 3.1MEDIUM 5.9
- TI-2020-08665 Server-side request forgery in keycloak CVSS 3.1MEDIUM 5.3
- TI-2021-03612 A POST based reflected Cross Site Scripting vulnerability on has been identified in Keycloak. CVSS 3.1MEDIUM 6.1
- TI-2022-03994 Cross-site scripting in keycloak CVSS 3.1CRITICAL 10.0
- TI-2020-16908 Improper authentication in keycloak CVSS 3.1MEDIUM 6.5
Sources
- CVE-2022-3782 · CVE Program
- CVE-2022-3782 · NVD
- FIRST EPSS
- GHSA-g8q8-fggx-9r3q · GitHub Advisory Database · CC BY 4.0
- CVE-2022-3782 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences