CVE-2022-4137: redhat keycloak
Vulnerability summary
CVE-2022-4137 is a high (CVSS 8.1) vulnerability in redhat keycloak. EPSS estimates a 1.19% chance of exploitation in the next 30 days, higher than 67.7% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 3Timeline
- 25-09-2023PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · MavenEcosystem advisory · calculated8.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
- NVDNIST6.1MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:NDiffers
EPSS trend
Probability
1.19%
Chance of exploitation in the next 30 days
Percentile
68%
Versus all other CVEs
30-day change
+0.04 pp
From 1.15% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-81Improper Neutralization of Script in an Error Message Web PageThe product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special characters that could be interpreted as web-scripting elements when they are sent to an error page.
- CWE-79Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.
Affected systems
Redhat2 products
Org.keycloak1 product
- keycloak-parent< 20.0.5
2 vendors · 3 products
References
11 linksShow all 11 references
- github.com/keycloak/keycloakPACKAGE