Home / Red Hat / Red Hat Single Sign-On 7 / CVE-2022-4137
CVE-2022-4137: is it exploited, and which versions of Red Hat Single Sign-On 7 are affected and fixed?
CVE-2022-4137 is an improper Neutralization of Script in an Error Message Web Page vulnerability in Red Hat Single Sign-On 7. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 10:08 UTC). Affected: org.keycloak:keycloak-parent before 20.0.5 (GitHub advisory GHSA-9hhc-pj4w-w5rv). Fixed in 20.0.5 (GitHub advisory GHSA-9hhc-pj4w-w5rv). Severity: High (8.1, CVSS 3.1, from redhat).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:08 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2022-4137?
Keycloak: reflected xss attack
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.
From the CVE record by redhat, last updated August 3, 2024, 01:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Red Hat | Red Hat Single Sign-On 7 keycloak-core | not stated | |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 rh-sso7-keycloak | all versions (default) | 0:18.0.6-1.redhat_00001.1.el7sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 rh-sso7-keycloak | all versions (default) | 0:18.0.6-1.redhat_00001.1.el8sso |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 rh-sso7-keycloak | all versions (default) | 0:18.0.6-1.redhat_00001.1.el9sso |
As the CVE record by redhat states it, last updated August 3, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | < 20.0.5 | 20.0.5 | GHSA-9hhc-pj4w-w5rv |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 26, 2023. Summary: Keycloak Cross-site Scripting on OpenID connect login service.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| redhat | keycloak | all versions | application |
| redhat | single sign-on | 7.6 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:20 UTC.
How severe is CVE-2022-4137?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N | redhat |
| Medium 6.1 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-4137 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.19% probability of exploitation activity in the next 30 days, percentile 68.9 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-81 Improper Neutralization of Script in an Error Message Web Page
- CWE-79 Improper Neutralization of Input During Web Page Generation
- CWE-116 Improper Encoding or Escaping of Output
Where are the vendor advisories and references?
- RHSA-2023:1043 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:1044 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:1045 vendor-advisory, x_refsource_REDHAT
- RHSA-2023:1049 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2022-4137 vdb-entry, x_refsource_REDHAT
- RHBZ#2148496 issue-tracking, x_refsource_REDHAT
When was it published, and where is the official record?
- Reserved
- November 24, 2022
- Published
- September 25, 2023, 19:17 UTC
- CVE record updated
- August 3, 2024, 01:27 UTC by redhat
- NVD
- Modified, last modified June 17, 2026, 05:20 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 10:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Red Hat Single Sign-On 7?
- Dec 3, 2026CVE-2026-143804 Red Hat Build of Keycloak: no limit on login attempts (brute force)
- Dec 3, 2026CVE-2026-143801 Red Hat Build of Keycloak: missing authorization
- Dec 1, 2026CVE-2026-140884 Red Hat Build of Keycloak: improper input validation
- Nov 26, 2026CVE-2026-137602 Red Hat Build of Keycloak: authorization bypass through a user-controlled key (IDOR)
- Nov 26, 2026CVE-2026-137435 Red Hat Build of Keycloak: improper Handling of Case Sensitivity
- Nov 26, 2026CVE-2026-137431 Red Hat Build of Keycloak: improper Validation of Consistency within Input
- Nov 25, 2026CVE-2026-136703 Red Hat Build of Keycloak: observable Response Discrepancy
- Nov 25, 2026CVE-2026-135768 Red Hat Build of Keycloak: authentication bypass (improper authentication)
Every CVE in Red Hat Single Sign-On 7
Questions about CVE-2022-4137
Is CVE-2022-4137 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 10:08 UTC. FIRST's EPSS gives it a 1.19% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Red Hat Single Sign-On 7 are affected by CVE-2022-4137?
org.keycloak:keycloak-parent before 20.0.5, per the GitHub advisory GHSA-9hhc-pj4w-w5rv. The tables above give every range the sources list.
Which version fixes CVE-2022-4137?
20.0.5, per the GitHub advisory GHSA-9hhc-pj4w-w5rv. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-4137?
High (8.1, CVSS 3.1, from redhat). The severity table above shows each score with its source.
Where is the official record of CVE-2022-4137?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.