{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2026-120984", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "state": "PUBLISHED", "assignerShortName": "redhat", "dateReserved": "2026-11-03T05:21:27.103Z", "datePublished": "2026-11-07T13:22:00.998Z", "dateUpdated": "2026-11-07T13:22:00.998Z" }, "containers": { "cna": { "title": "Keycloak-services: keycloak-services: manage-clients to arbitrary code execution through inline javascript policy import", "metrics": [ { "other": { "content": { "value": "Important", "namespace": "https://access.redhat.com/security/updates/classification/" }, "type": "Red Hat severity rating" } }, { "cvssV3_1": { "attackComplexity": "LOW", "attackVector": "NETWORK", "availabilityImpact": "HIGH", "baseScore": 9.1, "baseSeverity": "CRITICAL", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "HIGH", "scope": "CHANGED", "userInteraction": "NONE", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "version": "3.1" }, "format": "CVSS" } ], "descriptions": [ { "lang": "en", "value": "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." } ], "affected": [ { "vendor": "Red Hat", "product": "Red Hat Build of Keycloak", "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "packageName": "keycloak-services", "defaultStatus": "affected", "cpes": [ "cpe:/a:redhat:build_keycloak:" ] }, { "vendor": "Red Hat", "product": "Red Hat Build of Keycloak", "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "packageName": "rhbk/keycloak-rhel9", "defaultStatus": "affected", "cpes": [ "cpe:/a:redhat:build_keycloak:" ] }, { "vendor": "Red Hat", "product": "Red Hat Single Sign-On 7", "collectionURL": "https://access.redhat.com/downloads/content/package-browser/", "packageName": "keycloak-services", "defaultStatus": "affected", "cpes": [ "cpe:/a:redhat:red_hat_single_sign_on:7" ] } ], "references": [ { "url": "https://access.redhat.com/security/cve/CVE-2026-120984", "tags": [ "vdb-entry", "x_refsource_REDHAT" ] }, { "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2565599", "name": "RHBZ#2565599", "tags": [ "issue-tracking", "x_refsource_REDHAT" ] } ], "datePublic": "2026-01-07T12:00:00.000Z", "problemTypes": [ { "descriptions": [ { "cweId": "CWE-94", "description": "Improper Control of Generation of Code", "lang": "en", "type": "CWE" } ] } ], "x_redhatCweChain": "CWE-94: Improper Control of Generation of Code", "workarounds": [ { "lang": "en", "value": "Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability." } ], "timeline": [ { "lang": "en", "time": "2026-10-30T18:47:57.000Z", "value": "Reported to Red Hat." }, { "lang": "en", "time": "2026-01-07T12:00:00.000Z", "value": "Made public." } ], "credits": [ { "lang": "en", "value": "Red Hat would like to thank Nassim Abbaoui (OVHcloud) and Marcin Naskręt (UNSHADE) for reporting this issue." } ], "providerMetadata": { "orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2026-11-07T13:22:00.998Z" }, "x_generator": { "engine": "cvelib 1.8.0" } } } }