CVE-2022-4137
published high CVSS 3.1 · 8.1Keycloak: reflected xss attack
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | keycloak-coreRed Hat Single Sign-On 7 | Unaffected | Not required | redhat |
| Red Hat | — | rh-sso7-keycloakRed Hat Single Sign-On 7.6 for RHEL 7 · 0:18.0.6-1.redhat_00001.1.el7sso and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rh-sso7-keycloakRed Hat Single Sign-On 7.6 for RHEL 8 · 0:18.0.6-1.redhat_00001.1.el8sso and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rh-sso7-keycloakRed Hat Single Sign-On 7.6 for RHEL 9 · 0:18.0.6-1.redhat_00001.1.el9sso and later · Other versions: affected | Unaffected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat Single Sign-On 7 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 7 | 0:18.0.6-1.redhat_00001.1.el7sso and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 8 | 0:18.0.6-1.redhat_00001.1.el8sso and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7.6 for RHEL 9 | 0:18.0.6-1.redhat_00001.1.el9sso and later (unaffected · rpm)Default: affected | redhat · cna |
Weaknesses
1- CWE-81 Improper Neutralization of Script in an Error Message Web Page
References
6- RHSA-2023:1043 https://access.redhat.com/errata/RHSA-2023:1043
- RHSA-2023:1044 https://access.redhat.com/errata/RHSA-2023:1044
- RHSA-2023:1045 https://access.redhat.com/errata/RHSA-2023:1045
- RHSA-2023:1049 https://access.redhat.com/errata/RHSA-2023:1049
- https://access.redhat.com/security/cve/CVE-2022-4137
- RHBZ#2148496 https://bugzilla.redhat.com/show_bug.cgi?id=2148496
Provider assertions
2redhat · cna
Keycloak: reflected xss attack
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 8d8b0c7faab4ed3b56f3a84d0d6cbcbd12304650e06207a5cd96e09682d7177b
- Ingested
- 23 Sep 2026, 08:04:21 UTC
- Source record
- Official CVE record