CVE-2026-9796

MEDIUM

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

Title source: cna
STIX 2.1

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.

References (2)

Core 2
Core References
Vdb Entry, X_Refsource_Redhat vdb-entry x_refsource_redhat
https://access.redhat.com/security/cve/CVE-2026-9796
Issue Tracking, X_Refsource_Redhat issue-tracking x_refsource_redhat
RHBZ#2482464
https://bugzilla.redhat.com/show_bug.cgi?id=2482464

Scores

CVSS v3 6.5
EPSS 0.0019
EPSS Percentile 8.3%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-367
Status published
Products (2)
Red Hat/Red Hat Build of Keycloak
redhat/build_of_keycloak
Published May 28, 2026
Tracked Since May 28, 2026