CVE-2026-120984

Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import

Published Nov 7, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

A flaw in Keycloak's client management component causes an internal session attribute to remain uncleared during the import of clients with authorization services enabled. An authenticated user with client‑management permissions can bypass security controls to upload a malicious JavaScript policy, which the server then executes when an authorization request is processed. Successful exploitation permits arbitrary code execution, potentially compromising the entire server.

Affected Systems

The vulnerability affects Red Hat’s Build of Keycloak and Red Hat Single Sign‑On 7. Specific vulnerable versions are not enumerated in the available data, so any release built from these vendor products is potentially impacted until a patch is applied.

Risk and Exploitability

The vulnerability has a CVSS score of 9.1, indicating critical severity, but its EPSS score is not available and it is not listed in CISA KEV. The attack requires the attacker to be authenticated and have client‑management privileges, allowing them to create or import a client. The limited prerequisites reduce the attack surface, but the impact remains severe if the conditions are met. The exploitation path involves adding a malicious JavaScript policy that the server executes during normal authorization handling.

Remediation

Vendor Workaround

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.


OpenCVE Recommended Actions

  • Apply the official Red Hat patch or upgrade to the latest Build of Keycloak that contains the fix for CVE‑2026‑120984.
  • Limit client‑management permissions so that only trusted administrators can create or import clients, and remove the authorization‑services feature if it is not required.
  • Disable or tightly restrict the import of JavaScript policies, or enforce policy signing/verification before execution.

Generated by OpenCVE AI on November 7, 2026 at 14:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26.4::el9
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Vendors & Products Red Hat
Red Hat red Hat Build Of Keycloak 26.4
Redhat build Of Keycloak
Redhat single Sign-on
Type Values Removed Values Added
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.
Title Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import
First Time appeared Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
Weaknesses CWE-94
CPEs cpe:/a:redhat:build_keycloak:
cpe:/a:redhat:red_hat_single_sign_on:7
Vendors & Products Redhat
Redhat build Keycloak
Redhat red Hat Single Sign On
References
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Nov 26, 2026, 7:40 PM
Reserved
Nov 3, 2026, 5:21 AM
Status
Awaiting Analysis
Published
Nov 7, 2026, 2:17 PM
Modified
Nov 26, 2026, 8:17 PM