{"id":"CVE-2026-9796","published":"2026-05-28T04:27:08Z","modified":"2026-09-15T11:39:48Z","title":"Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability","vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00219,"percentile":0.12631,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:56523","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:56524","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9796","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482464","tags":["issue-tracking","x_refsource_REDHAT"]}],"priority":{"score":7.1,"factors":[{"name":"EPSS percentile","points":2.53},{"name":"CVSS severity","points":4.55}]},"vendorSlug":"red-hat","affectedVersions":[{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","versions":["all versions"]},{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","versions":["all versions"]}],"workarounds":{"items":["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."],"from":"CVE.org CNA","provenance":"source"},"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-28T12:16:43.517458Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-server","vulnerableRanges":["<26.6.4"],"patched":["26.6.4"],"from":["GHSA-pq65-77rc-7r8c"],"provenance":"source"}],"summary":{"text":"A time-of-check to time-of-use race condition in the name-based admin role checks of Red Hat build of Keycloak 26.6 lets an attacker escalate privileges to realm-admin for all users in the realm. Exploitation requires an authenticated administrator holding the manage-clients role, and the resulting composite role relationship persists after the attacker's own permissions are revoked and across reboots.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:14:47Z"},"euvd":{"id":"EUVD-2026-32716","exploited":false,"provenance":"source"}}