Skip to content
Fencer Vulns
critical 9.1

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 keycloak
    affected: no fix available
  • Red Hat Fuse 7 keycloak keycloak
    affected: no fix available “Fix deferred”
  • Red Hat JBoss Enterprise Application Platform 6 keycloak keycloak
    affected: no fix planned “Out of support scope”
  • Red Hat AMQ Broker 7.10.3
    fixed: vendor fix RHSA-2023:3185
  • Red Hat AMQ Broker 7.11.0
    fixed: 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-20
    fixed: vendor fix RHSA-2023:1047
  • Red Hat Migration Toolkit for Runtimes 1 on RHEL 8
    fixed: vendor fix RHSA-2023:1285
  • Red Hat MTA 6.1 for RHEL 8 mta/mta-windup-addon-rhel8 6.1.0-11
    fixed: vendor fix RHSA-2023:2041
show 8 more
  • Red Hat Single Sign-On 7
    fixed: 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.el7sso
    fixed: 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.el8sso
    fixed: 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.el9sso
    fixed: vendor fix RHSA-2022:8963
  • Red Hat Single Sign-On 7.6.1
    fixed: vendor fix RHSA-2022:8965
  • Red Hat RHINT Service Registry 2.4.3 GA
    fixed: vendor fix RHSA-2023:3815
  • Red Hat RHPAM 7.13.1 async
    fixed: 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-core
    not 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

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
  • CWE-177 Improper Handling of URL Encoding (Hex Encoding)

References

Sources

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.