CVE-2022-3782 json
Keycloak vulnerable to path traversal via double URL encoding
published 2022-12-13 3 y ago modified 2026-06-17 4 mo ago also GHSA-g8q8-fggx-9r3q , EUVD-2022-7628
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.0%
- EPSS 6.0% chance of exploitation in 30 days, percentile 93%
- public exploits
- 0
- none known
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.
Patch / fix
- maven org.keycloak:keycloak-parent 20.0.2
- rh-sso7-keycloak red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el7sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el7sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el9sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el9sso
- rh-sso7-keycloak red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el8sso
- rh-sso7-keycloak-server red hat single sign on 7.6 18.0.3-1.redhat_00002.1.el8sso
red hat advisories RHSA-2022:8961RHSA-2022:8963RHSA-2022:8962
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-3782 updated cvss 8.1
keycloak: path traversal via double URL encoding
-
Red Hat build of Quarkus keycloak keycloakaffected: no fix available
-
Red Hat Fuse 7 keycloak keycloakaffected: no fix available “Fix deferred”
-
Red Hat JBoss Enterprise Application Platform 6 keycloak keycloakaffected: no fix planned “Out of support scope”
-
Red Hat AMQ Broker 7.10.3fixed: vendor fix RHSA-2023:3185
-
Red Hat AMQ Broker 7.11.0fixed: vendor fix RHSA-2023:1661
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso76-openshift-rhel8 7.6-15, rh-sso-7/sso76-openshift-rhel8 7.6-20fixed: vendor fix RHSA-2023:1047
-
Red Hat Migration Toolkit for Runtimes 1 on RHEL 8fixed: vendor fix RHSA-2023:1285
-
Red Hat MTA 6.1 for RHEL 8 mta/mta-windup-addon-rhel8 6.1.0-11fixed: vendor fix RHSA-2023:2041
show 8 moreshow fewer
-
Red Hat Single Sign-On 7fixed: vendor fix RHSA-2023:1049
-
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.el7ssofixed: vendor fix RHSA-2022:8961
-
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.el8ssofixed: vendor fix RHSA-2022:8962
-
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.el9ssofixed: vendor fix RHSA-2022:8963
-
Red Hat Single Sign-On 7.6.1fixed: vendor fix RHSA-2022:8965
-
Red Hat RHINT Service Registry 2.4.3 GAfixed: vendor fix RHSA-2023:3815
-
Red Hat RHPAM 7.13.1 asyncfixed: vendor fix RHSA-2023:2135
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso7-rhel8-operator 7.6-7, rh-sso-7/sso7-rhel8-operator-bundle 7.6.1-8 Red Hat MTA 6.1 for RHEL 8 mta/mta-ui-rhel8 6.1.0-13, mta/mta-hub-rhel8 6.1.0-10, mta/mta-rhel8-operator 6.1.0-11, mta/mta-operator-bundle 6.1.0-16, mta/mta-pathfinder-rhel8 6.1.0-7 Red Hat Data Grid 8 org.wildfly.security-wildfly-elytron-parent org.wildfly.security-wildfly-elytron-parent Red Hat JBoss Data Grid 7 keycloak keycloak Red Hat JBoss Enterprise Application Platform 7 keycloak-corenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
5.95% chance of exploitation in the next 30 days, higher than 93% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-parent | <20.0.2 |
20.0.2 |
Affected products
- redhat.com Keycloak
Classification
References
-
github.com
/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37
web
-
access.redhat.com
/security/cve/CVE-2022-3782
web, vendor-advisory
-
github.com
/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q
web
-
nvd.nist.gov
/vuln/detail/CVE-2022-3782
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2022-3782
- GitHub Advisory GHSA-g8q8-fggx-9r3q
- NVD CVE-2022-3782
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.