CVE-2026-118030 PUBLISHED

Keycloak-services: keycloak-services: hotp race condition allows single otp code reuse across concurrent logins

Assigner: redhat
Reserved: 27.10.2026 Published: 29.10.2026 Updated: 29.10.2026

A flaw was found in the HOTP authentication mechanism of the keycloak-services component, which provides identity and access management services. The issue occurs because the system validates a one-time password and updates its internal counter in two separate steps without proper locking. An attacker with a users password could exploit this timing gap to use a single one-time code to log in multiple times simultaneously.

Metrics

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

Product Status

Vendor Red Hat
Product Red Hat Build of Keycloak
Versions Default: affected
Vendor Red Hat
Product Red Hat Build of Keycloak
Versions Default: affected
Vendor Red Hat
Product Red Hat Single Sign-On 7
Versions Default: unaffected

Workarounds

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Credits

  • Red Hat would like to thank Muhannad Alsaif (xNadByte) for reporting this issue.

References

Problem Types

  • Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') CWE