CVE-2026-9796 Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability
MediumCVSS 6.5
EPSS 0.22%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
8 packages: 1 fixed, 1 partially fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat build of keycloak | All versions | No fix listed | No fix yet |
| redhat/rhbk-keycloak-rhel9/rhbk-keycloak-rhel9(Red Hat build_keycloak 26.6) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-operator-bundle:26.6.6-1(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9(Red Hat build_keycloak) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9-operator:26.6-12(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat/rhbk/keycloak-rhel9:26.6-12(Red Hat build_keycloak 26.6 el9) | All versions | No fix listed | No fix yet |
| redhat build keycloak | < 26.6-12; < 26.6.6-1; = 26.6; All versions | 26.6-12, 26.6.6-1 | Partially fixed |
| org.keycloak/keycloak-server(Maven) | < 26.6.4; = 1.0-alpha-1-12062013; = 1.0-final; = 1.0-rc-1 +11 more | 26.6.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.keycloak/keycloak-server(Maven) | < 26.6.4 | 26.6.4 |
| org.keycloak/keycloak-server(Maven) | = 1.0-alpha-1-12062013 | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0-final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0-rc-1 | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0-rc-2 | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0.1.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0.2.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0.3.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0.4.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.0.5.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.1.0.Beta1 | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.1.0.Beta2 | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.1.0.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.1.1.Final | No fix listed |
| org.keycloak/keycloak-server(Maven) | = 1.2.0.Beta1 | No fix listed |
| redhat build keycloak | < 26.6.6-1 | 26.6.6-1 |
| redhat build keycloak | < 26.6-12 | 26.6-12 |
| redhat build keycloak | = 26.6 | No fix listed |
| redhat build keycloak | All versions | No fix listed |
| redhat/rhbk/keycloak-operator-bundle:26.6.6-1(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9:26.6-12(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9-operator:26.6-12(Red Hat:build_keycloak:26.6::el9) | All versions | No fix listed |
| redhat/rhbk-keycloak-rhel9/rhbk-keycloak-rhel9(Red Hat:build_keycloak:26.6) | All versions | No fix listed |
| redhat/rhbk/keycloak-rhel9(Red Hat:build_keycloak:) | All versions | No fix listed |
| redhat build of keycloak | All versions | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com patch
- github.com patch
- RHSA-2026:56523 patch vendor-advisory
- RHSA-2026:56524 patch vendor-advisory
- Red Hat CVE page mitigation vdb-entry vendor-advisory
- RHBZ#2482464 issue-tracking vendor-advisory
- github.com product
- www.cve.org
- github.com
- ENISA EUVD EUVD-2026-32716 third-party-advisory