Race Condition Affecting org.keycloak:keycloak-services package, versions [0,]


Severity

Recommended
0.0
low
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.2% (6th 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 Race Condition vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGKEYCLOAK-22989579
  • published26 Nov 2026
  • disclosed26 Oct 2026
  • creditUnknown

Introduced: 26 Oct 2026

CVE-2026-118030  (opens in a new tab)
CWE-362  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

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 Race Condition via HOTP validation in the OTPCredentialProvider class. When a realm uses HOTP, an attacker who has a user’s password can send concurrent authentication requests with the same valid one-time code; because validation and counter updates are separate, the code can authenticate multiple concurrent sessions, bypassing its one-time-use restriction.

CVSS Base Scores

version 4.0
version 3.1