Read the docs
TI-2026-08585 Aliases CVE-2026-9796GHSA-pq65-77rc-7r8c

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

Priority LOW 28CWE-367Published · Updated

Key facts

Attack vector
Network
Privileges required
High
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
High · High · None
Fix status
Partial Red Hat: 2 fixed, 1 without a fix

Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00219 12th percentileScored 2026-11-07
Fix Partial org.keycloak:keycloak-server (Maven): 26.6.4Red Hat: 2 advisoriesRed Hat: 2 fixed, 1 without a fix

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Red HatRed Hat build of Keycloak 26.6—26.6.6-1Patch availableCNA
Red HatRed Hat build of Keycloak 26.6—26.6-12Patch availableCNA
Red HatRed Hat build of Keycloak 26.6—26.6-12Patch availableCNA
Red HatRed Hat build of Keycloak 26.6.6——Not affectedCNA
Red HatRed Hat Build of Keycloak——No fix listedCNA
—org.keycloak:keycloak-server (Maven)before 26.6.426.6.4Patch availableGHSA-pq65-77rc-7r8c
  • Red Hat build of Keycloak 26.6 VendorRed Hat Affected — Fixed in 26.6.6-1 Patch available CNA
  • Red Hat build of Keycloak 26.6 VendorRed Hat Affected — Fixed in 26.6-12 Patch available CNA
  • Red Hat build of Keycloak 26.6 VendorRed Hat Affected — Fixed in 26.6-12 Patch available CNA
  • Red Hat build of Keycloak 26.6.6 VendorRed Hat Affected — Fixed in — Not affected CNA
  • Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — No fix listed CNA
  • org.keycloak:keycloak-server (Maven) Vendor— Affected before 26.6.4 Fixed in 26.6.4 Patch available GHSA-pq65-77rc-7r8c

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:*not specified by NVDVulnerableRed Hat
  • cpe:2.3:a:redhat:build_of_keycloak:-:*:*:*:-:*:*:* Versions not specified by NVD Vulnerable ·Red Hat

Remediation

  • Fix · GHSA-pq65-77rc-7r8c org.keycloak:keycloak-server (Maven) Fixed in 26.6.4 Advisory →

Red Hat 2 advisories

  • RHSA-2026:56524 Released 2026-08-18 · Red Hat rating Critical
    Red Hat build of Keycloak 26.6.6 Images Security Update
    • Red Hat build of Keycloak 26.6 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
  • RHSA-2026:56523 Released 2026-08-18 · Red Hat rating Critical
    Red Hat build of Keycloak 26.6.6 Security Update
    • Red Hat build of Keycloak 26.6.6

Vendor assessments

Red Hat

Red Hat rating: Moderate. Red Hat's page for this CVE →

ProductStatusPlan or fix
Red Hat Build of KeycloakAffectedNo fix planned: Will not fix
Red Hat build of Keycloak 26.6Fixed RHSA-2026:56524
Red Hat build of Keycloak 26.6.6Fixed RHSA-2026:56523

Timeline

  1. 2026-10-02 Threatist record created from CVE-2026-9796
  2. 2026-10-03 Alias added: GHSA-pq65-77rc-7r8c

References

  • TI-2026-02223 Keycloak: keycloak: unauthorized authentication via disabled saml identity provider CVSS 3.1HIGH 8.1
  • TI-2024-01049 Keycloak: path transversal in redirection validation CVSS 3.1HIGH 8.1
  • TI-2026-13740 Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restriction CVSS 3.1CRITICAL 9.8
  • TI-2026-13741 Keycloak-services: keycloak-services: saml broker metadata import disables response signature validation CVSS 3.1CRITICAL 9.1
  • TI-2026-13106 Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalation CVSS 3.1HIGH 8.8
  • TI-2026-02631 Authentication bypass in Red Hat build of Keycloak 26.2 CVSS 3.1HIGH 8.8
See all 110 →

Sources