Intel

AIKIDO-2026-830379

rodauth is vulnerable to Race Condition (TOCTOU)

Race Condition (TOCTOU) Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Yesterday

48

Medium Risk

This Affects:

RUBYrodauth
1.0.0 - 2.46.0
Fixed in 2.47.0
Are you affected? Scan for Free

TL;DR

Several authentication flows retrieved and consumed one-time tokens and codes without serializing concurrent requests for the same account. Concurrent requests could reuse a single-use credential or exceed the configured OTP and SMS failure limits, because the token lookup and deletion were not performed under a locking transaction. Exploitation requires possession of a valid token or partial account access together with a concurrent request from the legitimate user. The fix wraps these operations in transactions using row locking, verifies that a single row was deleted, and rejects concurrent password updates instead of silently succeeding.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you use one of the token-based or multifactor features.

Background info

rodauth is vulnerable to Race Condition (TOCTOU) in versions 1.0.0 - 2.46.0.

How to fix this

Upgrade the rodauth library to the patch version.