Medium severity · published Sep 25, 2023
CVE-2022-4137
A reflected cross-site scripting (XSS) vulnerability was found in the 'oob' OAuth endpoint due to incorrect null-byte handling
6.1
CVSS
1.2%
EPSS
No
On KEV
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 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
None
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)1.2% · higher than 68% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Keycloak · Redhat
All versions, or not specified · source: NVD
SS
Single Sign-on · Redhat
7.6 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-4137
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-4137
Vendor Advisory
https://access.redhat.com/errata/RHSA-2023:1043
Vendor Advisory
https://access.redhat.com/errata/RHSA-2023:1044
Vendor Advisory
https://access.redhat.com/errata/RHSA-2023:1045
Vendor Advisory
https://access.redhat.com/errata/RHSA-2023:1049
Vendor Advisory
https://access.redhat.com/security/cve/CVE-2022-4137
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2148496
More from Keycloak
9.8
CVE-2022-1245
A privilege escalation flaw was found in the token exchange feature of keycloak
9.8
CVE-2019-14910
A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used instead of SSL/TLS from the LDAP server (ldaps), in this case…
9.6
CVE-2021-20195
A flaw was found in keycloak in versions before 13.0.0
9.1
CVE-2022-3782
keycloak: path traversal via double URL encoding
9.1
CVE-2019-14837
A flaw was found in keycloack before version 8.0.0
