CVE-2026-120984
published critical CVSS 3.1 · 9.1Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.4 · 26.4.18-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4 · 26.4-30 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.4 · 26.4-31 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat build of Keycloak 26.4.18 | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.4.18 | Unaffected | Not required | redhat |
| Red Hat | — | keycloak-servicesRed Hat Single Sign-On 7 | Affected | Not stated | redhat |
Description
A flaw was found in the Keycloak server's client management component. When a client is created or imported with authorization services enabled, the system fails to properly clear an internal session attribute used during the setup process. This allows an authenticated attacker with client management permissions to bypass security controls and upload a malicious JavaScript policy, which is then executed on the server when an authorization request is made. Successful exploitation could allow the attacker to run arbitrary code on the server, potentially compromising the entire system.
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
- 9.1 / 10
- Severity
- critical
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4.18-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-30 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4 | 26.4-31 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4.18 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.4.18 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Single Sign-On 7 | Default: affected | redhat · cna |
Weaknesses
1- CWE-94 Improper Control of Generation of Code
References
4- RHSA-2026:96037 https://access.redhat.com/errata/RHSA-2026:96037
- RHSA-2026:96038 https://access.redhat.com/errata/RHSA-2026:96038
- https://access.redhat.com/security/cve/CVE-2026-120984
- RHBZ#2565599 https://bugzilla.redhat.com/show_bug.cgi?id=2565599
Provider assertions
2redhat · cna
Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 6139a0e800d37f2784c0810456ce0376f0d64bd9607f4d26ae4b5e7eb842574d
- Ingested
- 26 Nov 2026, 19:48:06 UTC
- Source record
- Official CVE record