cve.bz

CVE-2022-3782 redhat keycloak: Path traversal

9.1 criticalEPSS 6.2%Fix available

Critical (9.1) in redhat keycloak. EPSS 6.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-parent 20.0.2.

On this page
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.

Severity

CVSS 3.1

9.1 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
6.2% (unchanged from 6.2% a week ago; 6.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 94th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-09. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-3782 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-3782?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-3782?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-3782 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
redhat.com Keycloakfrom 20.0.2 before 20.0.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g8q8-fggx-9r3qMavenorg.keycloak:keycloak-parent<20.0.220.0.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatred_hat_single_sign_on:7.6::el7rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el7ssoRHSA-2022:8961
Red Hatred_hat_single_sign_on:7.6::el8rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el8ssoRHSA-2022:8962
Red Hatred_hat_single_sign_on:7.6::el9rh-sso7-keycloak, rh-sso7-keycloak-server0:18.0.3-1.redhat_00002.1.el9ssoRHSA-2022:8963

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

Red Hat Build of Quarkus is not impacted as this CVE affects the server-side Keycloak execution but Quarkus only acts as a Keycloak client in its quarkus-keycloak-authorization extension. For this reason Quarkus is marked with Low impact.

ProductPackageStateAdvisory
AMQ Broker 7.10.3Fixed 2023-05-17RHSA-2023:3185
AMQ Broker 7.11.0keycloakFixed 2023-04-05RHSA-2023:1661
Migration Toolkit for Runtimes 1 on RHEL 8org.keycloak-keycloak-parentFixed 2023-03-16RHSA-2023:1285
MTA-6.1-RHEL-8mta/mta-windup-addon-rhel8:6.1.0-11Fixed 2023-04-27RHSA-2023:2041
Red Hat Single Sign-On 7rh-sso7-keycloakFixed 2023-03-01RHSA-2023:1049
Red Hat Single Sign-On 7.6.1rh-sso7-keycloakFixed 2022-12-13RHSA-2022:8965
Red Hat Single Sign-On 7.6 for RHEL 7rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el7ssoFixed 2022-12-13RHSA-2022:8961
Red Hat Single Sign-On 7.6 for RHEL 8rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el8ssoFixed 2022-12-13RHSA-2022:8962
Red Hat Single Sign-On 7.6 for RHEL 9rh-sso7-keycloak-0:18.0.3-1.redhat_00002.1.el9ssoFixed 2022-12-13RHSA-2022:8963
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-15Fixed 2022-12-13RHSA-2022:8964
RHEL-8 based Middleware Containersrh-sso-7/sso76-openshift-rhel8:7.6-20Fixed 2023-03-01RHSA-2023:1047
RHINT Service Registry 2.4.3 GAkeycloakFixed 2023-06-27RHSA-2023:3815
RHPAM 7.13.1 asynckeycloakFixed 2023-05-04RHSA-2023:2135
Red Hat build of QuarkuskeycloakAffected
Red Hat Data Grid 8org.wildfly.security-wildfly-elytron-parentNot affected
Red Hat Fuse 7keycloakFix deferred
Red Hat JBoss Data Grid 7keycloakNot affected
Red Hat JBoss Enterprise Application Platform 6keycloakOut of support scope
Red Hat JBoss Enterprise Application Platform 7keycloak-coreNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-3782.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON