{"id":"CVE-2026-9796","aliases":["GHSA-pq65-77rc-7r8c"],"summary":"Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability","published_at":"2026-05-28T03:32:50.762Z","modified_at":"2026-09-15T11:39:48.493Z","products":[{"slug":"keycloak","name":"Keycloak","category":"identity"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false,"red_hat":"Moderate","vendor_ratings":[{"source":"Red Hat","rating":"Moderate"}]},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0021899999119341373,"percentile":0.12520000338554382,"date":"2026-11-19T00:00:00Z"},"priority":7.5,"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.","affected_stack":[{"ecosystem":"CVE","package":"Red Hat/Red Hat Build of Keycloak","provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.6-1"}]}],"fixed":["26.6.6-1"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-12"}]}],"fixed":["26.6-12"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-12"}]}],"fixed":["26.6-12"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"Maven","package":"org.keycloak:keycloak-server","purl":"pkg:maven/org.keycloak/keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.4"}]}],"versions":["1.0-alpha-1-12062013","1.0-final","1.0-rc-1","1.0-rc-2","1.0.1.Final","1.0.2.Final","1.0.3.Final","1.0.4.Final","1.0.5.Final","1.1.0.Beta1","1.1.0.Beta2","1.1.0.Final","1.1.1.Final","1.2.0.Beta1"],"fixed":["26.6.4"],"provider":"osv","source":"GHSA-pq65-77rc-7r8c","relation":"self"}],"affected_other":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"affected","packages":["rhbk/keycloak-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-9796"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:56524"],"provider":"redhat-vex","source":"CVE-2026-9796"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.6","cpe":"cpe:/a:redhat:build_keycloak:26.6","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:56523"],"provider":"redhat-vex","source":"CVE-2026-9796"}],"records":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1708","relation":"upstream","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1708","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-05-27T22:00:00Z","modified_at":"2026-11-08T23:00:00Z","summary":"Keycloak: Mehrere Schwachstellen","details":"Ein Angreifer kann mehrere Schwachstellen in Keycloak ausnutzen, um seine Privilegien zu erhöhen, um Informationen offenzulegen, um Sicherheitsvorkehrungen zu umgehen und um einen Denial of Service Angriff durchzuführen.\n\nKeycloak ermöglicht Single Sign-On mit Identity and Access Management für moderne Anwendungen und Dienste.","severity":[{"type":"BSI","score":"mittel","source":"WID-SEC-W-2026-1708"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-1708.json"},{"type":"WEB","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1708"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2481845"},{"type":"WEB","url":"https://access.redhat.com/security/cve/cve-2026-9689"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2481877"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482458"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482459"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482460"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482461"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482462"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482464"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482470"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482473"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482467"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482465"},{"type":"WEB","url":"https://www.keycloak.org/2026/06/keycloak-2663-released"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:25098"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:25097"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:30084"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:30049"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:30050"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:30083"},{"type":"WEB","url":"https://www.keycloak.org/2026/07/keycloak-2670-released"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50848"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50846"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50849"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:50847"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:56524"},{"type":"WEB","url":"https://access.redhat.com/errata/RHSA-2026:56523"},{"type":"WEB","url":"https://www.keycloak.org/2026/08/keycloak-2673-released"}]},{"provider":"cvelistv5","source_id":"CVE-2026-9796","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-9796","license":"CC-BY-4.0","published_at":"2026-05-28T04:27:08.794Z","modified_at":"2026-09-15T11:39:48.493Z","summary":"Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-9796"}],"affected":[{"ecosystem":"CVE","package":"Red Hat/Red Hat Build of Keycloak","provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.6-1"}]}],"fixed":["26.6.6-1"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-12"}]}],"fixed":["26.6-12"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"},{"ecosystem":"CVE","package":"Red Hat/Red Hat build of Keycloak 26.6","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6-12"}]}],"fixed":["26.6-12"],"provider":"cvelistv5","source":"CVE-2026-9796","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:56523"},{"type":"ADVISORY","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"}]},{"provider":"osv","source_id":"GHSA-pq65-77rc-7r8c","relation":"self","url":"https://osv.dev/vulnerability/GHSA-pq65-77rc-7r8c","license":"CC-BY-4.0","published_at":"2026-05-28T06:31:09Z","modified_at":"2026-08-19T00:45:06.924619Z","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"GHSA-pq65-77rc-7r8c"}],"affected":[{"ecosystem":"Maven","package":"org.keycloak:keycloak-server","purl":"pkg:maven/org.keycloak/keycloak-server","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"26.6.4"}]}],"versions":["1.0-alpha-1-12062013","1.0-final","1.0-rc-1","1.0-rc-2","1.0.1.Final","1.0.2.Final","1.0.3.Final","1.0.4.Final","1.0.5.Final","1.1.0.Beta1","1.1.0.Beta2","1.1.0.Final","1.1.1.Final","1.2.0.Beta1"],"fixed":["26.6.4"],"provider":"osv","source":"GHSA-pq65-77rc-7r8c","relation":"self"}],"product_status":[],"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"}]},{"provider":"redhat-vex","source_id":"CVE-2026-9796","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-9796","license":"CC-BY-4.0","published_at":"2026-05-28T03:32:50.762Z","modified_at":"2026-08-11T10:42:56Z","summary":"keycloak: Keycloak: Privilege escalation via Time-of-Check to Time-of-Use (TOCTOU) vulnerability","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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","source":"CVE-2026-9796"},{"type":"Red Hat","score":"Moderate","source":"CVE-2026-9796"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Build of Keycloak","cpe":"cpe:/a:redhat:build_keycloak:","status":"affected","packages":["rhbk/keycloak-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Will not fix","provider":"redhat-vex","source":"CVE-2026-9796"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6","cpe":"cpe:/a:redhat:build_keycloak:26.6::el9","status":"fixed","packages":["rhbk/keycloak-operator-bundle","rhbk/keycloak-rhel9","rhbk/keycloak-rhel9-operator"],"package_count":3,"fixed":[],"advisories":["RHSA-2026:56524"],"provider":"redhat-vex","source":"CVE-2026-9796"},{"vendor":"Red Hat","product":"Red Hat build of Keycloak 26.6.6","cpe":"cpe:/a:redhat:build_keycloak:26.6","status":"fixed","packages":[],"package_count":0,"fixed":[],"advisories":["RHSA-2026:56523"],"provider":"redhat-vex","source":"CVE-2026-9796"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9796.json"},{"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":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-9796"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9796"}]}],"references":[{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:56523"},{"type":"ADVISORY","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":"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":"PACKAGE","url":"https://github.com/keycloak/keycloak"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-9796.json"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-9796"}],"sources":[{"provider":"csaf-bsi","source_id":"WID-SEC-W-2026-1708","url":"https://wid.cert-bund.de/portal/wid/securityadvisory?name=WID-SEC-2026-1708","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-11-08T23:00:00Z","relation":"upstream"},{"provider":"cvelistv5","source_id":"CVE-2026-9796","url":"https://www.cve.org/CVERecord?id=CVE-2026-9796","license":"CC-BY-4.0","modified_at":"2026-09-15T11:39:48.493Z","relation":"self"},{"provider":"osv","source_id":"GHSA-pq65-77rc-7r8c","url":"https://osv.dev/vulnerability/GHSA-pq65-77rc-7r8c","license":"CC-BY-4.0","modified_at":"2026-08-19T00:45:06.924619Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-9796","url":"https://access.redhat.com/security/cve/CVE-2026-9796","license":"CC-BY-4.0","modified_at":"2026-08-11T10:42:56Z","relation":"self"}]}
