WaratekVRT Sign in

CVE-2022-4137 Keycloak

Affected softwareKeycloak
Severity8.1 High CVSS 3.1 2 scores
Fixed in20.0.5
WeaknessCross-site scripting (CWE-79)
Published25 Sep 2023
Updated17 Jun 2026

Description

A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling. This issue allows a malicious link to insert an arbitrary URI into a Keycloak error page. This flaw requires a user or administrator to interact with a link in order to be vulnerable. This may compromise user details, allowing it to be changed or collected by an attacker.

CWE-81CWE-116

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 no assessment published
  • Indexed PoC none indexed
  • EPSS 1.2% chance in 30 days

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: keycloak/keycloak #16774.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.
Candidate fix https://bugzilla.redhat.com/show_bug.cgi?id=2148496 : a Red Hat bug: the triage, which links onward to the fix

CVSS

8.1 HIGH v3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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 8.1 HIGH CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N secalert@redhat.com Secondary published
CVSS 3.1 6.1 MEDIUM CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N NVD Primary

Affected software and releases

Maven packages

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

Products and versions

3 products, 3 version entries
SourceVendorProductSchemeAffected versions
osv org.keycloak keycloak-parent generic < 20.0.5
nvd redhat keycloak generic any version
nvd redhat single sign-on generic 7.6

References

URLTags
https://bugzilla.redhat.com/show_bug.cgi?id=2148496 bugzilla
https://github.com/keycloak/keycloak/security/advisories/GHSA-9hhc-pj4w-w5rv WEB
https://github.com/keycloak/keycloak/pull/16774 WEB
https://github.com/keycloak/keycloak/commit/30d0e9d22dae51392e5a3748a1c68c116667359a WEB
https://access.redhat.com/errata/RHSA-2023:1043 WEB
https://access.redhat.com/errata/RHSA-2023:1044 WEB
https://access.redhat.com/errata/RHSA-2023:1045 WEB
https://access.redhat.com/errata/RHSA-2023:1049 WEB
https://access.redhat.com/security/cve/CVE-2022-4137 WEB
https://github.com/keycloak/keycloak PACKAGE

Timeline

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