6.5Medium

CVE-2026-9796Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability

Red Hat Red Hat build of Keycloak 26.6; Red Hat Red Hat build of Keycloak 26.6.6; Red Hat Red Hat Build of Keycloak Published: (5 months ago)

Description

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.

Weakness (CWE): CWE-367

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
build keycloak 26.6 —
redhat build of keycloak —
Red Hat Red Hat Build of Keycloak all versions
Red Hat Red Hat build of Keycloak 26.6 all versions
Red Hat Red Hat build of Keycloak 26.6.6 —

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*