{"id":"CVE-2026-120984","aliases":["CVE-2026-120984"],"related":[],"kind":"vulnerability","state":"published","title":"Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-07T13:22:00.998Z","modified":"2026-11-26T20:17:22.380Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H","score":9.1,"rating":"CRITICAL"}],"cwes":["CWE-94"],"affected":[{"ranges":[{"type":"rpm","introduced":"26.4.18-1","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-operator-bundle","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-30","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"26.4-31","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4","package":"rhbk/keycloak-rhel9-operator","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.18","package":"keycloak-services","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.4.18","package":"rhbk/keycloak-rhel9","cpe":"cpe:/a:redhat:build_keycloak:26.4::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Single Sign-On 7","package":"keycloak-services","cpe":"cpe:/a:redhat:red_hat_single_sign_on:7","source":"cvelist"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:96037","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:96038","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-120984","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2565599","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]}],"credits":["Red Hat would like to thank Nassim Abbaoui (OVHcloud) and Marcin Naskręt (UNSHADE) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-11-09T13:46:13.590Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-120984","url":"https://www.cve.org/CVERecord?id=CVE-2026-120984","licence":"CVE Terms of Use","modified":"2026-11-26T19:40:28.164Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-120984","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120984","licence":"Public domain","modified":"2026-11-26T20:17:22.380Z"}],"updatedAt":"2026-11-26T20:32:33.362Z","epss":{"score":0.00716,"percentile":0.54964,"date":"2026-12-01T12:00:22.000Z"}}