Time-of-check Time-of-use (TOCTOU) Race Condition Affecting org.keycloak:keycloak-services package, versions [0,26.7.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.22% (13th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Time-of-check Time-of-use (TOCTOU) Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-17082641
  • published29 May 2026
  • disclosed28 May 2026
  • creditDaniel Peters, Lior Moshe, Uri Rolls

Introduced: 28 May 2026

CVE-2026-9796  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade org.keycloak:keycloak-services to version 26.7.0 or higher.

Overview

org.keycloak:keycloak-services is an open source identity and access management solution for modern applications and services.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the role rename endpoint. An attacker can gain unauthorized administrative privileges by exploiting a timing window between permission checks and their enforcement. The attacker can escalate their access to realm-wide administrative control, even after their original permissions are revoked and across system reboots.

CVSS Base Scores

version 4.0
version 3.1