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

CVE-2026-9796
MEDIUM 6.5

At a glance

Source
NVD
EPSS
EPSS 0.22 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
NVD status
Modified

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.

Weaknesses (CWE)

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

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:Nredhat
CVSS 3.1MEDIUM 6.5CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:NNVD · secalert@redhat.com (Secondary)

Advisories

European references

Affected configurations (NVD CPE)

Affected products

ProductVersions
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6.6-1 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-12 < *
Red Hat · Red Hat build of Keycloak 26.6unaffected 26.6-12 < *
Red Hat · Red Hat build of Keycloak 26.6.6
Red Hat · Red Hat Build of Keycloak

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD