Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.keycloak/keycloak-server
  4. ›
  5. CVE-2026-9796

CVE-2026-9796: Keycloak has a Time-of-check Time-of-use (TOCTOU) Race Condition

May 28, 2026 (updated July 1, 2026)

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.

References

  • access.redhat.com/security/cve/CVE-2026-9796
  • bugzilla.redhat.com/show_bug.cgi?id=2482464
  • github.com/advisories/GHSA-pq65-77rc-7r8c
  • github.com/keycloak/keycloak/commit/39cb8de54c8517efeda4baa8bc314fd40e9c6934
  • github.com/keycloak/keycloak/issues/49427
  • github.com/keycloak/keycloak/pull/49624
  • nvd.nist.gov/vuln/detail/CVE-2026-9796

Code Behaviors & Features

Detect and mitigate CVE-2026-9796 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 26.6.4

Fixed versions

  • 26.6.4

Solution

Upgrade to version 26.6.4 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

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

Source file

maven/org.keycloak/keycloak-server/CVE-2026-9796.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 11 Jul 2026 12:17:46 +0000.