Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
cve-program · CVE-2026-9796
PublishedA flaw was found in Keycloak. An authenticated administrator with the `manage-clients` role can exploit a Time-of-check to time-of-use (TOCTOU) vulnerability in the name-based admin role checks. This allows the attacker to escalate their privileges to `realm-admin` for all users within the realm, granting them extensive control over the system. The composite role relationship persists even after the attacker's own permissions are revoked and across system reboots.
Read the publisher's advisoryAffected versions, risk and source history
Related advisories and sources
Publishers link these advisories through the identifiers shown below. A shared identifier or date alone does not tell you whether your software is affected or whether the advisories describe the same cause.
CVE-2026-9796 · CVE overview and exploitation status
cve-program · CVE-2026-9796
Related changes
Linked by CVE identifierNo related changes are available here.