REDHAT-BUG-2562005: Race Condition

Published Oct 27, 2026
·
Updated

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.

Affected Software

1 affected component
Red Hat Keycloak

Event History

Oct 27, 2026
Data Sourced
via Red Hat·02:18 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What does an attacker need to exploit this issue?

The attacker must already have a valid user's credentials and one valid HOTP code. They must then submit multiple authentication requests concurrently to the OpenID Connect token endpoint.

2

Which deployments are affected?

The issue applies to realms configured with an HOTP policy. The provided information does not identify other authentication policy configurations as affected.

3

What is the practical impact of successful exploitation?

A single HOTP code can be accepted by multiple concurrent requests, allowing the attacker to establish multiple authenticated sessions despite the one-time-use restriction.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203