CVE-2026-9796: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat build of Keycloak 26.6
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.
AI Analysis
Technical Summary
This vulnerability in Red Hat Build of Keycloak allows an authenticated administrator with the manage-clients role to exploit a TOCTOU race condition in name-based admin role checks. By doing so, the attacker can escalate their privileges to realm-admin for all users within the realm, gaining extensive control over the system. The composite role relationship created by the exploit persists beyond revocation of the attacker's permissions and survives system reboots. The flaw affects the integrity of role-based access control and is classified as a moderate privilege escalation issue. No official fix or patch is currently available that meets Red Hat's criteria for deployment and stability.
Potential Impact
The vulnerability allows an attacker with manage-clients privileges to escalate to realm-admin privileges, granting extensive control over all users in the realm. This compromises the integrity of the system's role-based access control. The elevated privileges persist even after the attacker's original permissions are revoked and survive system reboots, potentially allowing long-term unauthorized access and control. There is no impact on availability reported. Confidentiality and integrity impacts are high.
Mitigation Recommendations
Currently, no mitigation or patch is available that meets Red Hat's criteria for ease of use, deployment, applicability, or stability. Users should monitor Red Hat's advisory for updates. Until a fix is released, limiting the assignment of the manage-clients role to trusted administrators and auditing role assignments may reduce risk. Customers with a Red Hat Technical Account Manager (TAM) can review this CVE directly with their TAM for tailored guidance.
CVE-2026-9796: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat build of Keycloak 26.6
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.
CVSS v3.1
Score 6.5medium
Affected software
Red Hat
Red Hat build of Keycloak 26.6
Red Hat
Red Hat build of Keycloak 26.6
Red Hat
Red Hat build of Keycloak 26.6.6
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in Red Hat Build of Keycloak allows an authenticated administrator with the manage-clients role to exploit a TOCTOU race condition in name-based admin role checks. By doing so, the attacker can escalate their privileges to realm-admin for all users within the realm, gaining extensive control over the system. The composite role relationship created by the exploit persists beyond revocation of the attacker's permissions and survives system reboots. The flaw affects the integrity of role-based access control and is classified as a moderate privilege escalation issue. No official fix or patch is currently available that meets Red Hat's criteria for deployment and stability.
Potential Impact
The vulnerability allows an attacker with manage-clients privileges to escalate to realm-admin privileges, granting extensive control over all users in the realm. This compromises the integrity of the system's role-based access control. The elevated privileges persist even after the attacker's original permissions are revoked and survive system reboots, potentially allowing long-term unauthorized access and control. There is no impact on availability reported. Confidentiality and integrity impacts are high.
Mitigation Recommendations
Currently, no mitigation or patch is available that meets Red Hat's criteria for ease of use, deployment, applicability, or stability. Users should monitor Red Hat's advisory for updates. Until a fix is released, limiting the assignment of the manage-clients role to trusted administrators and auditing role assignments may reduce risk. Customers with a Red Hat Technical Account Manager (TAM) can review this CVE directly with their TAM for tailored guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-05-28T03:31:58.205Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-9796","vendor":"Red Hat"}]
Threat ID: 6a1839bbe29bf47b50eaa222
Added to database: 05/28/2026, 12:48:59 UTC
Last enriched: 08/11/2026, 13:26:36 UTC
Last updated: 09/11/2026, 08:24:21 UTC
Views: 137
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.