NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

CVE-2026-9796: Keycloak has a Time-of-check Time-of-use (TOCTOU) Race Condition

mediumCVSS 3.1 6.5GHSA-pq65-77rc-7r8c

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.

Published May 28, 2026 · Updated Aug 19, 2026

Affected packages

org.keycloak:keycloak-server

Ecosystem
Maven
Affected
< 26.6.4
Fixed in
26.6.4
Check
mvn dependency:tree -Dincludes=org.keycloak:keycloak-server

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology