Skip to main content
← All vulnerabilities
CVE-2026-9796GHSA-PQ65-77RC-7R8C

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 26.6.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • rhbk/keycloak-operator-bundle

    Version range not reported

  • rhbk/keycloak-rhel9

    Version range not reported

  • rhbk/keycloak-rhel9-operator

    Version range not reported

  • rhbk-keycloak-rhel9/rhbk-keycloak-rhel9

    Version range not reported

  • rhbk/keycloak-rhel9

    Version range not reported

  • org.keycloak:keycloak-serverMaven

    fixed in 26.6.4

References 4

access.redhat.com

bugzilla.redhat.com