Vulnerability · Published Sep 25, 2023 · Assigned by redhat
CVE-2022-4137Keycloak: reflected xss attack
High 8.1
In plain English
A high-severity security flaw in Red Hat Single Sign-On 7 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | 20.0.5 | GHSA-9hhc-pj4w-w5rv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Single Sign-On 7 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | see references |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | see references |
Weakness: CWE-81 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
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