Bug 2562005 (CVE-2026-118030) - CVE-2026-118030 keycloak-services: keycloak-services: HOTP race condition allows single OTP code reuse across concurrent logins
Summary: CVE-2026-118030 keycloak-services: keycloak-services: HOTP race condition all...
Keywords:
Status: NEW
Alias: CVE-2026-118030
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-27 14:18 UTC by OSIDB Bzimport
Modified: 2026-10-27 14:23 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-27 14:18:33 UTC
A race condition vulnerability was found in Keycloak within the HOTP HMAC-based One-Time Password validation logic in keycloak-services. When a realm is configured with an HOTP policy, the operations to validate a submitted code and increment the HOTP counter are performed non-atomically and without concurrency locking. An attacker who has already obtained a valid users credentials and a single valid HOTP code can send multiple concurrent authentication requests to the OpenID Connect token endpoint. Because of the lack of synchronization, multiple requests may be validated against the same counter value before it is successfully incremented. This allows an attacker to bypass the one-time use restriction of the HOTP code and establish multiple concurrent authenticated sessions.


Note You need to log in before you can comment on or make changes to this bug.