8.1
HIGH CVSS 3.1
CVE-2022-4137
Keycloak OAuth Reflected Cross-Site Scripting
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.

INFO

Published Date :

Sept. 25, 2023, 8:15 p.m.

Last Modified :

Nov. 21, 2024, 7:34 a.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2022-4137 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Redhat enterprise_linux
2 Redhat keycloak
3 Redhat single_sign-on
4 Redhat build_of_keycloak
1 Keycloak keycloak
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
This vulnerability allows cross-site scripting due to incorrect null-byte handling in the OAuth endpoint.
  • Update the affected Red Hat Single Sign-On package.
  • Refer to the vendor's advisory for specific guidance and updates.
Public PoC/Exploit Available at Github

CVE-2022-4137 has a 1 public PoC/Exploit available at Github. Go to the Public Exploits tab to see the list.

References to Advisories, Solutions, and Tools
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-4137 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

None

Java TypeScript JavaScript AMPL HTML Shell CSS XSLT Groovy Batchfile

Updated: 1 week ago
0 stars 0 fork 0 watcher
Born at : Aug. 19, 2025, 1:51 a.m. This repo has been linked 1 different CVEs too.

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-4137 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-4137 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference https://access.redhat.com/errata/RHSA-2023:1043
    Added Reference https://access.redhat.com/errata/RHSA-2023:1044
    Added Reference https://access.redhat.com/errata/RHSA-2023:1045
    Added Reference https://access.redhat.com/errata/RHSA-2023:1049
    Added Reference https://access.redhat.com/security/cve/CVE-2022-4137
    Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2148496
  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added CWE Red Hat, Inc. CWE-81
  • Initial Analysis by [email protected]

    Sep. 29, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    Changed Reference Type https://access.redhat.com/errata/RHSA-2023:1043 No Types Assigned https://access.redhat.com/errata/RHSA-2023:1043 Vendor Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2023:1044 No Types Assigned https://access.redhat.com/errata/RHSA-2023:1044 Vendor Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2023:1045 No Types Assigned https://access.redhat.com/errata/RHSA-2023:1045 Vendor Advisory
    Changed Reference Type https://access.redhat.com/errata/RHSA-2023:1049 No Types Assigned https://access.redhat.com/errata/RHSA-2023:1049 Vendor Advisory
    Changed Reference Type https://access.redhat.com/security/cve/CVE-2022-4137 No Types Assigned https://access.redhat.com/security/cve/CVE-2022-4137 Vendor Advisory
    Changed Reference Type https://bugzilla.redhat.com/show_bug.cgi?id=2148496 No Types Assigned https://bugzilla.redhat.com/show_bug.cgi?id=2148496 Issue Tracking, Vendor Advisory
    Added CWE NIST CWE-79
    Added CPE Configuration OR *cpe:2.3:a:redhat:keycloak:-:*:*:*:*:*:*:*
    Added CPE Configuration AND OR *cpe:2.3:a:redhat:single_sign-on:7.6:*:*:*:*:*:*:* OR cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:* cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:* cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 8.1
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.39 }} 0.20%

score

0.59477

percentile