WaratekVRT Sign in

CVE-2022-3782 keycloak

Affected softwarekeycloak
Severity9.1 Critical CVSS 3.1 2 scores
Fixed in20.0.2
WeaknessPath traversal (CWE-22)
Published13 Jan 2023
Updated17 Jun 2026

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.

CWE-177

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 3 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 6.2% chance in 30 days

Waratek protection

Protected by Waratek

Waratek has a rule that blocks attacks on this vulnerability.

Decided by A vulnerability class already blocked by an ARMR security rule
Finding Protected by Waratek's ARMR path-traversal security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-22: Path Traversal.
Candidate fix https://access.redhat.com/security/cve/CVE-2022-3782 : a Red Hat CVE page: the weakest kind, naming no commit, though it shows Red Hat has looked at the CVE

How to mitigate CVE-2022-3782

Upgrade keycloak to 20.0.2 or later. Until you can, Waratek RASP blocks exploitation with its path traversal rule. It runs inside the Java application, with no code changes.

Waratek RASP Runtime protection for Java applications

CVSS

9.1 CRITICAL v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
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 NVD Primary published
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 CISA-ADP Secondary

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.keycloak:keycloak-parent 0 20.0.2 unbounded

Products and versions

2 products, 2 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-parent generic < 20.0.2
nvd redhat keycloak generic 20.0.2

References

URLTags
https://access.redhat.com/security/cve/CVE-2022-3782 redhat-cve
https://github.com/keycloak/keycloak/security/advisories/GHSA-g8q8-fggx-9r3q WEB
https://github.com/keycloak/keycloak/pull/15982/commits/1987c942f527b9f3bbf2a86ba71ba8ae0154ac37 WEB
https://github.com/keycloak/keycloak PACKAGE

Timeline

Published2023-01-13By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.