{"id":"CVE-2026-120984","published":"2026-11-07T14:17:01.580","lastModified":"2026-11-09T14:17:07.390","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.","cvssScore":9.1,"cvssSeverity":"CRITICAL","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","cwes":["CWE-94"],"vendors":[],"products":[],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2026-120984","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2565599","tags":[]}],"exploitRefs":[],"hasPoc":false,"ai":{"summary":"A session attribute cleanup flaw in Keycloak's client management component allows authenticated attackers with client management permissions to bypass authorization controls by persisting a malicious JavaScript policy. This policy executes server-side during authorization requests, enabling arbitrary code execution.","exploitability":"Exploitation requires authenticated access with client management permissions and knowledge of the internal session attribute handling flaw; no public exploit exists.","blast_radius":"Successful exploitation grants full server compromise, including read/write access to all realm data, user credentials, and administrative functions via arbitrary code execution.","remediation":"Upgrade to Keycloak 25.0.4 or later, as this version includes the fix for improper session attribute cleanup in client authorization setup (CVE-2026-120984).","detection":"No reliable host or network indicator is derivable from the published description.","tags":["rce","auth-bypass","web","session-handling"],"model":"garnet-coder","analyzedAt":"2026-11-08T09:47:22.900Z"}}