CVE-2026-120984: Red Hat manage-clients to arbitrary code execution through inline javascript policy import
This Red Hat advisory covers CVE-2026-120984 in Red Hat Build of Keycloak and Red Hat Single Sign-On 7.
- CVE-2026-120984
Key facts
- Vendor rating
- Critical, CVSS 9.1
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H· base score 9.1, scored by redhatAttack vector: network. Attack complexity: low. Privileges required: high. User interaction: none. Scope: changed. Confidentiality impact: high. Integrity impact: high. Availability impact: high.- Weakness
- CWE-94 Improper Control of Generation of Code
- EPSS
- 0.42% chance of exploitation in the next 30 days (36th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: none observed. Automatable: no. Technical impact: total. CISA, .
- CISA KEV
- Not listed (catalogue checked )
- Source published
- Source revised
- Listed by VulniPulse
- Record changed
Compiled by VulniPulse from the linked sources. How records are collected and checked.
Affected products & platforms
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.
This vulnerability is rated as Important rather than Critical because exploitation requires an authenticated attacker with elevated administrative privileges, specifically delegated client management roles. In multi-tenant Red Hat Single Sign-On and Red Hat Build of Keycloak deployments, script-based policies are restricted by default to maintain isolation.
However, improper session state cleanup during client provisioning permits an authorized administrator to bypass upload restrictions and inject inline scripts. Subsequent policy evaluation executes within the application server process, breaking realm boundaries and potentially compromising the host environment and co-hosted realms.
Red Hat severity: Important — CVSS 9.1 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H). Weakness: CWE-94.
Text from the source record.
How to fix CVE-2026-120984
Workarounds
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
More Red Hat Linux advisories
CVE-2026-125350Nov 10, 2026Use after free in XMLCVE-2026-114713Nov 8, 2026Command injection via unescaped message tagCVE-2026-90436Nov 6, 2026Remote code execution via insecure deserialization of SOAP fault messagesCVE-2026-123158Nov 5, 2026Password authentication bypass via password hash misinterpretationCVE-2026-115731Nov 3, 2026authenticated remote code execution via report event deserializationCVE-2026-119977Oct 31, 2026Arbitrary code execution via predictable upgrade staging paths
Get an email when Red Hat publishes the next one.
See Red Hat's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.