{"id":"CVE-2026-9796","aliases":[],"url":"https://o3.security/vulnerability/CVE-2026-9796","summary":"Keycloak has a Time-of-check Time-of-use (TOCTOU) Race Condition","details":"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.","published":"2026-05-28T06:31:09Z","modified":"2026-08-19T00:45:06.924619010Z","cvss":{"score":6.5,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N"},"epss":{"score":0.00219,"percentile":0.12167,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Maven","name":"org.keycloak:keycloak-server","fixedVersion":"26.6.4"}],"fix":{"url":"https://github.com/keycloak/keycloak/pull/49624","label":"keycloak/keycloak#49624"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9796"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/issues/49427"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/pull/49624"},{"type":"WEB","url":"https://github.com/keycloak/keycloak/commit/39cb8de54c8517efeda4baa8bc314fd40e9c6934"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:56523"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:56524"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-9796"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482464"},{"type":"PACKAGE","url":"https://github.com/keycloak/keycloak"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-19T00:45:06.924619010Z"}}