{"schemaVersion":3,"id":"CVE-2026-9796","aliases":["GHSA-pq65-77rc-7r8c"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2026-05-28T04:27:08.794Z","modified":"2026-09-15T11:39:48.493Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","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","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Maven","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","exploitability":3.1,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","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","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00379,"percentile":0.3063,"severity":"low","asOf":"2026-10-22T00:00:00.000Z","change":{"pp":0.15999999999999998,"baselineDate":"2026-09-22T00:00:00.000Z","baselineScore":0.00219},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00379,"percentile":0.3063}],"last30":[{"date":"2026-09-22T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00219,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-21T00:00:00.000Z","score":0.00379,"percentile":null},{"date":"2026-10-22T00:00:00.000Z","score":0.00379,"percentile":0.3063}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition","description":"The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/367.html"}],"affected":[{"vendor":"org.keycloak","product":"keycloak-server","name":"org.keycloak:keycloak-server","label":"keycloak-server","ecosystem":"Maven","cpePart":null,"purl":"pkg:maven/org.keycloak/keycloak-server","purlType":"maven","versions":[{"text":"< 26.6.4","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 26.6.4","eol":null,"hubHref":null},{"vendor":"redhat","product":"build_of_keycloak","name":"build of keycloak","label":"build_of_keycloak","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/redhat/build_of_keycloak"}],"affectedCount":2,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://access.redhat.com/errata/RHSA-2026:56523","label":"access.redhat.com/errata/RHSA-2026:56523","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2026:56524","label":"access.redhat.com/errata/RHSA-2026:56524","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","WEB"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-9796","label":"access.redhat.com/security/cve/CVE-2026-9796","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2482464","label":"bugzilla.redhat.com/show_bug.cgi?id=2482464","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT","WEB","Vendor Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-9796","label":"nvd.nist.gov/vuln/detail/CVE-2026-9796","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/keycloak/keycloak/issues/49427","label":"github.com/keycloak/keycloak/issues/49427","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/pull/49624","label":"github.com/keycloak/keycloak/pull/49624","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak/commit/39cb8de54c8517efeda4baa8bc314fd40e9c6934","label":"github.com/keycloak/keycloak/commit/39cb8de54c8517efeda4baa8bc314fd40e9c6934","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/keycloak/keycloak","label":"github.com/keycloak/keycloak","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-05-28T04:27:08.794Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-09-15T11:39:48.493Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":26,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-22T15:16:38.051Z","stale":false,"partial":false}}