Medium [CVE-2026-9796] Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
This medium-severity Red Hat Linux advisory covers CVE-2026-9796 affecting Red Hat build of Keycloak 26.6.6.
Aggregated and source-linked by VulniPulse. Data sources, validation and limitations.
VulniPulse record published
Android app · Google Play
Monitor future Red Hat Linux CVEs from your phone.
Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.
Summary
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.
Red Hat severity: Moderate — CVSS 6.5 (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N). Weakness: CWE-367.
Affected Red Hat products: Red Hat build of Keycloak 26.6; Red Hat build of Keycloak 26.6.6; Red Hat Build of Keycloak. Will not fix / out of support: Red Hat Build of Keycloak.
Red Hat fixing advisory: RHSA-2026:56524, RHSA-2026:56523.
Affected versions
No affected-version range was extracted from the source record. The vendor advisory is authoritative — check it before change work.
Official advisory · high-confidence parse· fetched 8 days ago·verify at source
- rhbk/keycloak-operator-bundle:26.6.6-1
- rhbk/keycloak-rhel9:26.6-12
- rhbk/keycloak-rhel9-operator:26.6-12
- rhbk-keycloak-rhel9/rhbk-keycloak-rhel9
- RHSA-2026:56524
- RHSA-2026:56523
Official advisory · high-confidence parse· fetched 8 days ago·verify at source
Mitigation checklist
- Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Official advisory · high-confidence parse· fetched 8 days ago·verify at source
Discussion(0)
No comments yet. Share field notes, upgrade gotchas, or questions — verify against the vendor advisory before acting on community advice.
Sign in to join the discussion.