CVE-2026-72584

fastschema - TOCTOU Race Condition Bypasses OTP Attempt Limit in Account Recovery

Published Aug 10, 2026 CVSS 3.1 · 7.4 High EPSS < 1% KEV · Not listed
Description
A time-of-check/time-of-use (TOCTOU) race condition in fastschema through v0.15.1 allows an unauthenticated remote attacker to bypass the OTP attempt limit on the account recovery flow, enabling brute-force attacks on 6-digit OTP codes.

Analysis

AI-generated

Technical impact

A time‑of‑check/time‑of‑use race condition in fastschema versions up to v0.15.1 allows an unauthenticated remote attacker to send concurrent OTP verification requests to the account recovery endpoint. The system reads the current OTP attempt counter, then, before the counter is updated, accepts additional requests that exceed the intended limit. This bypass enables brute‑force attacks on six‑digit OTP codes, potentially compromising user accounts. The flaw is a classic TOCTOU vulnerability (CWE‑367).

Affected Systems

Fastschema Fastschema for all releases up to and including v0.15.1 are susceptible. No newer releases are identified as affected in the current data.

Risk and Exploitability

The vulnerability has a CVSS score of 7.4, indicating a high impact and moderate exploitability. EPSS information is not available and the vulnerability is not listed in the CISA KEV catalog. Attackers can target the account recovery endpoint remotely without authentication, leveraging the race condition to attempt many more OTP verifications than the design allows. The exploit requires only the ability to send concurrent requests to the OTP verification service, making it a realistic threat for attackers with internet access to the affected application.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade fastschema to version 0.15.2 or later where the OTP attempt counter update is performed atomically.
  • If an upgrade cannot be performed immediately, enforce a server‑side rate limit on OTP verification requests to ensure the attempt threshold cannot be exceeded.
  • Validate the authentication flow for race conditions in a staging environment before redeploying, and monitor for anomalous OTP verification patterns.

Generated by OpenCVE AI on August 10, 2026 at 19:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Fastschema
Fastschema fastschema
Vendors & Products Fastschema
Fastschema fastschema
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description A time-of-check/time-of-use (TOCTOU) race condition in fastschema through v0.15.1 allows an unauthenticated remote attacker to bypass the OTP attempt limit on the account recovery flow, enabling brute-force attacks on 6-digit OTP codes. The verifyOTPSession function in pkg/auth/local.go reads and increments the attempt counter in separate non-atomic operations, allowing concurrent requests to observe the same attempt count below the threshold and proceed past the limit check before any update is committed. A time-of-check/time-of-use (TOCTOU) race condition in fastschema through v0.15.1 allows an unauthenticated remote attacker to bypass the OTP attempt limit on the account recovery flow, enabling brute-force attacks on 6-digit OTP codes.
Type Values Removed Values Added
Description A time-of-check/time-of-use (TOCTOU) race condition in fastschema through v0.15.1 allows an unauthenticated remote attacker to bypass the OTP attempt limit on the account recovery flow, enabling brute-force attacks on 6-digit OTP codes. The verifyOTPSession function in pkg/auth/local.go reads and increments the attempt counter in separate non-atomic operations, allowing concurrent requests to observe the same attempt count below the threshold and proceed past the limit check before any update is committed.
Title fastschema - TOCTOU Race Condition Bypasses OTP Attempt Limit in Account Recovery
Weaknesses CWE-367
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}

Weaknesses
  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition

Sources

Status
PUBLISHED
Assigner
TuranSec
Published
Updated
Aug 10, 2026, 1:14 PM
Reserved
Aug 10, 2026, 10:32 AM
Status
Deferred
Published
Aug 10, 2026, 11:17 AM
Modified
Oct 24, 2026, 3:10 PM