Skip to main content

Keycloak EUVDEUVD-2026-119254

| CVE-2026-120984 CRITICAL
Code Injection (CWE-94)
2026-11-07 redhat GHSA-2539-2x8g-x597
9.1
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with client management rights
  2. Delivery
    Create/import client with authorization services
  3. Exploit
    Upload malicious JavaScript policy
  4. Execution
    Trigger authorization request
  5. Persist
    Server executes attacker code
  6. Impact
    Arbitrary 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.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.4% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 9.1 CRITICAL
AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 9.1 CRITICAL

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).

3.1 AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H
Red Hat 9.1 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.4%
Top 64% exploitable
Prevalence
High
widely deployed enterprise IAM (Keycloak / Red Hat SSO) across many organizations
Social Media
4
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.4%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

46
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +46
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

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

cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_build_of_keycloak:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_single_sign-on_7:*:*:*:*:*:*:*:*
CVE-2026-18963 CRITICAL POC
9.1 Aug 18

Account takeover in Red Hat Build of Keycloak allows an unauthenticated attacker to abuse the reset-credentials flow in

CVE-2026-16442 CRITICAL
9.8 Aug 05

Account takeover in Keycloak (Red Hat build of Keycloak, Red Hat Single Sign-On 7) arises because the IdP-initiated SAML

CVE-2026-117691 CRITICAL
9.1 Nov 05

Keycloak's SAML HTTP-Redirect binding can be tricked into accepting an unsigned, attacker-supplied SAML message: paramet

CVE-2026-16443 CRITICAL
9.1 Aug 05

Authentication bypass in Red Hat Build of Keycloak (and Red Hat Single Sign-On 7) lets an unauthenticated attacker forge

CVE-2026-15572 HIGH
8.8 Aug 05

Privilege escalation in Red Hat Build of Keycloak's Dynamic Client Registration (DCR) grants an attacker with low-privil

CVE-2026-97175 HIGH
8.8 Nov 05

Account takeover in Keycloak's idp-auto-link authenticator lets an attacker who holds an account at a brokered identity

CVE-2026-93569 HIGH
8.2 Sep 18

Mismatched handling of the HTTP/1 absolute-form request authority in Red Hat build of Quarkus and other affected Red Hat

CVE-2026-112208 HIGH
8.1 Nov 05

Authentication bypass in Keycloak's Organization identity-first login flow allows an authenticated attacker who belongs

CVE-2026-114232 HIGH
8.1 Nov 05

Keycloak's UMA Protection API lets an authenticated realm user create a policy whose resourceType is not validated, so t

CVE-2026-9800 HIGH
8.1 Jun 25

Authorization bypass in the Keycloak Policy Enforcer allows any authenticated user to circumvent all enforced access con

CVE-2026-92857 HIGH
8.1 Nov 05

Keycloak's Dynamic Client Registration feature accepts registration requests in which an authorized registrant can map t

CVE-2026-15573 HIGH
8.1 Aug 05

URI normalization bypass in Keycloak's Authorization Services PathMatcher allows authenticated low-privilege users to re

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy