CVE-2026-9796: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Build of Keycloak
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 involves a TOCTOU race condition in the name-based administrative role checks within Red Hat's build of Keycloak. Specifically, an authenticated user with the 'manage-clients' role can exploit the timing flaw to escalate their privileges to 'realm-admin' across all users in the realm. The privilege escalation is persistent, remaining effective even after the attacker's initial permissions are revoked and after system reboots. The flaw impacts the integrity and confidentiality of the system by granting unauthorized administrative control. The CVSS 3.1 vector indicates network attack vector, low attack complexity, high privileges required, no user interaction, unchanged scope, and high impact on confidentiality and integrity but no impact on availability.
Potential Impact
Successful exploitation results in privilege escalation from 'manage-clients' to 'realm-admin' for all users within the realm, granting extensive administrative control. This elevated access persists beyond revocation of the attacker's original permissions and system reboots, potentially allowing long-term unauthorized control. The vulnerability compromises confidentiality and integrity of the system but does not affect availability. No known exploits have been reported in the wild to date.
Mitigation Recommendations
Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-9796 for current remediation guidance. Until an official fix is available, restrict 'manage-clients' role assignments to trusted administrators only and monitor for unusual privilege escalations. Follow vendor updates closely for patches or official mitigations.
CVE-2026-9796: Time-of-check Time-of-use (TOCTOU) Race Condition in Red Hat Red Hat Build of Keycloak
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
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves a TOCTOU race condition in the name-based administrative role checks within Red Hat's build of Keycloak. Specifically, an authenticated user with the 'manage-clients' role can exploit the timing flaw to escalate their privileges to 'realm-admin' across all users in the realm. The privilege escalation is persistent, remaining effective even after the attacker's initial permissions are revoked and after system reboots. The flaw impacts the integrity and confidentiality of the system by granting unauthorized administrative control. The CVSS 3.1 vector indicates network attack vector, low attack complexity, high privileges required, no user interaction, unchanged scope, and high impact on confidentiality and integrity but no impact on availability.
Potential Impact
Successful exploitation results in privilege escalation from 'manage-clients' to 'realm-admin' for all users within the realm, granting extensive administrative control. This elevated access persists beyond revocation of the attacker's original permissions and system reboots, potentially allowing long-term unauthorized control. The vulnerability compromises confidentiality and integrity of the system but does not affect availability. No known exploits have been reported in the wild to date.
Mitigation Recommendations
Patch status is not yet confirmed — check the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-9796 for current remediation guidance. Until an official fix is available, restrict 'manage-clients' role assignments to trusted administrators only and monitor for unusual privilege escalations. Follow vendor updates closely for patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- redhat
- Date Reserved
- 2026-05-28T03:31:58.205Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-9796","vendor":"Red Hat"}]
Threat ID: 6a1839bbe29bf47b50eaa222
Added to database: 5/28/2026, 12:48:59 PM
Last enriched: 5/28/2026, 1:03:30 PM
Last updated: 5/29/2026, 4:21:26 PM
Views: 16
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.