cve.bz

CVE-2026-9796 redhat build of keycloak

6.5 mediumEPSS 0.2%Fix available

Medium (6.5) in redhat build of keycloak. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-server 26.6.4.

On this page
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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-28. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-9796 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-9796?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-9796?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-9796 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-9796

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-9796](https://cve.bz/cve/badge/CVE-2026-9796.svg)](https://cve.bz/cve/CVE-2026-9796)

HTML:

<a href="https://cve.bz/cve/CVE-2026-9796"><img src="https://cve.bz/cve/badge/CVE-2026-9796.svg" alt="CVE-2026-9796"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat build of Keycloak 26.626.6.6-1
Red Hat build of Keycloak 26.626.6-12

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-pq65-77rc-7r8cMavenorg.keycloak:keycloak-server<26.6.426.6.4

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

A Moderate privilege escalation flaw exists in Keycloak where an authenticated administrator with `manage-clients` privileges can exploit a Time-of-Check to Time-of-Use (TOCTOU) vulnerability. This allows them to escalate their privileges to `realm-admin` for all users within the realm, impacting the integrity of role-based access control.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat build of Keycloak 26.6rhbk/keycloak-operator-bundle:26.6.6-1Fixed 2026-08-18RHSA-2026:56524
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9:26.6-12Fixed 2026-08-18RHSA-2026:56524
Red Hat build of Keycloak 26.6rhbk/keycloak-rhel9-operator:26.6-12Fixed 2026-08-18RHSA-2026:56524
Red Hat build of Keycloak 26.6.6rhbk-keycloak-rhel9/rhbk-keycloak-rhel9Fixed 2026-08-18RHSA-2026:56523
Red Hat Build of Keycloakrhbk/keycloak-rhel9Will not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-9796.

Attack patterns (CAPEC)

  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-29 Leveraging Time-of-Check and Time-of-Use (TOCTOU) Race Conditions Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON