Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with client management rights
-
DeliveryCreate/import client with authorization services
-
ExploitUpload malicious JavaScript policy
-
ExecutionTrigger authorization request
-
PersistServer executes attacker code
-
ImpactArbitrary code execution on host
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK
2 techniques across 2 tactics: Execution, Initial Access The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target client to be created or imported with authorization services (policy enforcement) enabled, and the attacker must hold client management permissions in the realm - this is a privileged operation, not anonymous access (PR:H). The specific defect is the server's failure to clear an internal setup session attribute, which permits uploading a JavaScript-type authorization policy; the malicious code runs only when an authorization request subsequently evaluates that policy. Limiting factors: the attacker needs legitimate or compromised client-management credentials, authorization services must be in use, and deployments that disable JavaScript policy providers (a supported Keycloak hardening option) materially reduce or remove the execution surface. No user interaction is required (UI:N) and the vector is network-reachable (AV:N). |
| Impact | This is a genuine high-priority issue, not a high-CVSS-but-low-risk artifact. The CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H, 9.1) describes a network-reachable, low-complexity flaw whose only meaningful barrier is PR:H - the attacker must already hold client management permissions. The scope change (S:C) is consistent with the description: a JavaScript policy executed by the server escalates out of the authorization component into arbitrary server-side code execution, hence the triple-High impact. The vuln.today Decision label is 'act_now', and the issue is vendor-reported by Red Hat, which raises confidence in the technical details. Counter-signals and gaps: no EPSS score was provided, there is no CISA KEV listing in the input, and no public exploit or PoC reference is present - so there is no evidence of active or at-scale exploitation, and the real-world threat depends heavily on how many deployments grant client management rights to semi-trusted or multi-tenant principals. In short, severity and exploitability are high for anyone who can reach the client management API with the required privilege, but the PR:H prerequisite means this is more a privileged-insider / compromised-admin-account escalation path than a mass-exploitable unauthenticated bug. EPSS, KEV, and PoC status are all absent/negative, which argues against treating it as an imminent internet-wide event while still warranting prompt patching per the act_now decision. |
| Exploit ScenarioDerived | An authenticated principal holding client management permissions (e.g. a realm/client administrator or a compromised service account) creates or imports a client with authorization services enabled; a stale internal session attribute left uncleared during setup lets them register a malicious JavaScript authorization policy. When a subsequent authorization request evaluates that policy, the server executes the attacker's code, yielding arbitrary code execution on the Keycloak host. No public PoC or exploit code is identified in the provided data, and the low attack complexity (AC:L) means exploitation is straightforward once the required client management privilege is held. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 07, 2026
Remote code execution in Keycloak is possible when an authenticated user with client-management permissions creates or imports a client with authorization services enabled and supplies a malicious JavaScript authorization policy; the server later executes that policy when an authorization request is evaluated. The defect is an uncleared internal setup session attribute in the client-management flow and maps to CWE-94 code injection, with Red Hat Build of Keycloak and Red Hat Single Sign-On 7 listed among affected products via CPE data. No public exploit was identified at time of analysis, but the vuln.today decision is act_now and exploitation requires both authorization services on the target client and privileged client-management access.
RemediationAI
No vendor-released patch is identified in the provided data, so monitor https://access.redhat.com/security/cve/CVE-2026-120984 and https://bugzilla.redhat.com/show_bug.cgi?id=2565599 for vendor updates. As a compensating control, disable JavaScript policy providers where they are not required, which is a supported Keycloak hardening option; the trade-off is that legitimate JavaScript authorization policies will stop working. Restrict and audit client-management permissions so only trusted administrators can create or import clients with authorization services enabled, accepting reduced administrative flexibility, and review existing clients for JavaScript-type policies that should be removed. Watch authorization-policy changes and authorization requests for suspicious activity until a vendor fix is available.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Keycloak is an identity and access management server, and its authorization services allow policy enforcement to be attached to clients. The reported flaw occurs when a client is created or imported with authorization services enabled: an internal session attribute used during setup is not properly cleared, allowing an authenticated principal with client-management rights to upload a JavaScript-type authorization policy. CWE-94 applies because server-side JavaScript from that policy is evaluated when a later authorization request triggers the policy. Exploitation is gated by client-management permissions (PR:H), requires authorization services to be in use on the target client, and is materially reduced by disabling JavaScript policy providers, a supported Keycloak hardening option; the exact affected version range and the specific internal attribute name are not described in the available sources.
Know when Red Hat Build Of Keycloak gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
Network-reachable client management API (AV:N) with no special trigger complexity (AC:L) but requiring client-management privilege (PR:H); JavaScript policy escapes the auth component to run server code (S:C), giving full RCE impact (C:H/I:H/A:H).
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Executive ViewAI
CVE-2026-120984 is a critical remote code execution vulnerability in Red Hat Keycloak that requires only an authenticated user with client-management permissions to create or import a malicious authorization policy, which the server then executes during authorization evaluation. This means users with existing admin rights over clients can turn those rights into full server compromise. Leadership should care because an attacker who already holds limited administrative access can escalate to complete control of the keycloak instance, potentially compromising all authentication and authorization services your organization relies on.
No vendor-released patch identified at time of analysis. Enforce least privilege by reducing the number of users with client-management permissions; audit and remove any unused client-management roles. Where possible, disable authorization services for clients that do not require them. Monitor authorization requests for unusual JavaScript policy execution and restrict network access to Keycloak admin endpoints.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
More in Red Hat Build Of Keycloak
View allAccount takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in
Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML
Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet
Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge
Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil
Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity
Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat
Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs
Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t
Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con
Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t
URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re
EUVD-2026-119254
GHSA-2539-2x8g-x597
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB