CVE-2026-9796: Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
A 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.
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2026-9796?
CVE-2026-9796 has a medium severity rating of 6.5.
How does CVE-2026-9796 exploit the system?
CVE-2026-9796 allows an authenticated administrator with the `manage-clients` role to escalate privileges via a time-of-check to time-of-use (TOCTOU) vulnerability.
What impact does CVE-2026-9796 have on users?
CVE-2026-9796 enables an attacker to escalate their privileges to `realm-admin` for all users within the realm.
Who is affected by CVE-2026-9796?
CVE-2026-9796 affects users of Keycloak, specifically administrators with the `manage-clients` role.
How do I fix CVE-2026-9796?
To fix CVE-2026-9796, ensure you update to the latest version of Keycloak that addresses this privilege escalation vulnerability.