Bug 2565599 (CVE-2026-120984) - CVE-2026-120984 keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline JavaScript policy import
Summary: CVE-2026-120984 keycloak-services: keycloak-services: manage-clients to arbit...
Keywords:
Status: NEW
Alias: CVE-2026-120984
Deadline: 2027-01-28
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-11-03 05:21 UTC by OSIDB Bzimport
Modified: 2026-11-07 13:12 UTC (History)
11 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-11-03 05:21:53 UTC
A flaw was found in Keycloak where an authenticated attacker with delegated client management permissions (manage-clients) can achieve arbitrary code execution. When a client is created with authorization services enabled and an authorizationSettings payload is provided in the same request, Keycloak sets an internal session attribute to allow the creation of a default policy but fails to clear it. This mechanism can be abused to supply an inline JavaScript policy during client import, bypassing the security control that normally disables script uploads. When the policy is subsequently evaluated during a User-Managed Access (UMA) authorization request, the injected JavaScript executes within the Keycloak server JVM process. This allows an attacker to escape the delegated administrator's realm boundary and perform actions such as reading sensitive host data, modifying configurations for other realms, or causing a complete system shutdown.


Note You need to log in before you can comment on or make changes to this bug.