CVE-2026-72584
Received Received - Intake

TOCTOU Race Condition in fastschema Allows OTP Bypass

Vulnerability report for CVE-2026-72584, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-08-10

Last updated on: 2026-08-10

Assigner: 309f9ea4-e3e9-4c6c-b79d-e8eb01244f2c

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.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-08-10
Last Modified
2026-08-10
Generated
2026-08-10
AI Q&A
2026-08-10
EPSS Evaluated
N/A
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
fastschema fastschema 0.15.1

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-367 The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This is a time-of-check/time-of-use (TOCTOU) race condition in fastschema v0.15.1. It allows unauthenticated remote attackers to bypass the one-time password (OTP) attempt limit during account recovery. The vulnerability exists because the verifyOTPSession function in pkg/auth/local.go reads and increments the attempt counter in separate non-atomic operations, enabling concurrent requests to exploit the same attempt count before it is updated.

Detection Guidance

Detecting this TOCTOU vulnerability requires monitoring for concurrent OTP verification attempts that bypass attempt limits. Check application logs for multiple rapid OTP verification requests from the same IP or user account. Look for patterns where the attempt counter does not increment between requests despite reaching the limit.

Impact Analysis

An attacker could exploit this to bypass OTP limits and perform brute-force attacks on 6-digit OTP codes, potentially gaining unauthorized access to user accounts. This undermines account security and could lead to data breaches or unauthorized actions on behalf of legitimate users.

Compliance Impact

This vulnerability could lead to unauthorized access to personal or sensitive data, violating confidentiality requirements in GDPR and HIPAA. Organizations using affected versions of fastschema may face compliance violations, potential fines, and reputational damage due to insufficient protection against brute-force attacks.

Mitigation Strategies

Upgrade fastschema to a patched version beyond v0.15.1. Implement atomic operations for OTP attempt counters. Add rate limiting at the network level for OTP endpoints. Disable account recovery via OTP if not essential. Monitor for unusual OTP verification spikes.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-72584. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart