Skip to content
Fencer Intel
medium 6.5

CVE-2026-9796 json

Keycloak: keycloak: privilege escalation via time-of-check to time-of-use (toctou) vulnerability

published 5mo ago modified 16d ago also GHSA-pq65-77rc-7r8c , EUVD-2026-32716

cvss
6.5
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 12%
public exploits
0
none known

Summary

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.

Patch / fix

  • maven org.keycloak:keycloak-server 26.6.4
  • Red Hat Red Hat build of Keycloak 26.6 26.6-12, 26.6.6-1

Is CVE-2026-9796 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-9796 updated cvss 6.5

keycloak: Keycloak: Privilege escalation via Time-of-Check to Time-of-Use (TOCTOU) vulnerability

  • Red Hat Build of Keycloak rhbk/keycloak-rhel9
    affected: workaround, no fix planned “Will not fix”
  • Red Hat build of Keycloak 26.6 rhbk/keycloak-rhel9 26.6-12, rhbk/keycloak-rhel9-operator 26.6-12, rhbk/keycloak-operator-bundle 26.6.6-1
    fixed: vendor fix RHSA-2026:56524
  • Red Hat build of Keycloak 26.6.6
    fixed: vendor fix RHSA-2026:56523

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
5mo ago

Exploit prediction

0.22% chance of exploitation in the next 30 days, higher than 12% of all scored CVEs (FIRST EPSS, 2026-11-11).

CVSS scores

assigned by version score vector
CNA 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
GitHub 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Affected packages

ecosystem package affected fixed in
maven org.keycloak:keycloak-server
<26.6.4
26.6.4

Affected products

  • Red Hat Red Hat build of Keycloak 26.6
  • Red Hat Red Hat build of Keycloak 26.6.6
  • Red Hat Red Hat Build of Keycloak

Classification

Weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.