Keycloak: arbitrary code execution
CriticalAI-generated2026-11-08
- CVE
- CVE-2026-120984
- Severity
- Critical (CVSS 9.1)
- Attack conditions
- Remotely, over the network · Administrator privileges are needed · No user action needed
- Exploitation probability (EPSS)
- 0.4% (within 30 days; FIRST EPSS, 13 November 2026)
Summary
Keycloak server's client management component is vulnerable. An attacker with client management rights can upload malicious code and execute it on the server.
Details
According to the NVD record, a flaw exists in the client management part of the Keycloak server. The problem occurs when a client is created or imported with authorization services turned on, and an internal session attribute is not cleared correctly. This lets an authenticated attacker who can manage clients bypass security checks and upload a malicious JavaScript policy.
When the malicious policy is triggered by an authorization request, the attacker can run arbitrary code on the server, potentially compromising the whole system.
What to do
The source record does not name a specific patch, fixed version or workaround. General measures:
- Follow the vendor's security advisories.
- Apply the update when it is released.
- Limit access to the product as much as possible, especially from the internet.
Sources
Timeline
- 7 November 2026 NVD record published
- 8 November 2026 This article was written