CVE-2026-9796
published medium CVSS 3.1 · 6.5Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.6 · 26.6.6-1 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.6 · 26.6-12 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.6 · 26.6-12 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk-keycloak-rhel9/rhbk-keycloak-rhel9Red Hat build of Keycloak 26.6.6 | Unaffected | Not required | redhat |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat Build of Keycloak | Affected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.5 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6.6-1 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-12 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6 | 26.6-12 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.6.6 | Default: unaffected | redhat · cna |
| Red Hat | Red Hat Build of Keycloak | Default: affected | redhat · cna |
Weaknesses
1- CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
References
4- RHSA-2026:56523 https://access.redhat.com/errata/RHSA-2026:56523
- RHSA-2026:56524 https://access.redhat.com/errata/RHSA-2026:56524
- https://access.redhat.com/security/cve/CVE-2026-9796
- RHBZ#2482464 https://bugzilla.redhat.com/show_bug.cgi?id=2482464
Provider assertions
2redhat · cna
Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3c46e75f8b7d095aff53f3e1f9d63b7fe65a902dc4a45b1dfcc30764e4022eb5
- Ingested
- 23 Sep 2026, 09:41:39 UTC
- Source record
- Official CVE record