Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability (Red Hat Red Hat build of Keycloak 26.6)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 12 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N | redhat |
| CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N | NVD · secalert@redhat.com (Secondary) |
Advisories
- GHSA-pq65-77rc-7r8c — Keycloak has a Time-of-check Time-of-use (TOCTOU) Race Condition
European references
- ENISA EUVD · EUVD-2026-32716
- GCVE · GCVE-0-2026-9796
Affected configurations (NVD CPE)
cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*
Affected products
| Product | Versions |
|---|---|
| Red Hat · Red Hat build of Keycloak 26.6 | unaffected 26.6.6-1 < * |
| Red Hat · Red Hat build of Keycloak 26.6 | unaffected 26.6-12 < * |
| Red Hat · Red Hat build of Keycloak 26.6 | unaffected 26.6-12 < * |
| Red Hat · Red Hat build of Keycloak 26.6.6 | |
| Red Hat · Red Hat Build of Keycloak |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |