Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify valid fastschema account
-
DeliveryTrigger account recovery to activate OTP session
-
ExploitFlood OTP endpoint with concurrent requests
-
InstallRace non-atomic attempt counter
-
C2Bypass attempt limit enforcement
-
ExecuteBrute-force valid 6-digit OTP
-
ImpactAchieve full account takeover
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture TOCTOU prevention
|
| Exploitation Conditions | Exploitation requires that the target deployment runs fastschema v0.15.1 or earlier with the OTP-based account recovery flow enabled and exposed over the network - if this feature is disabled or the recovery endpoint is blocked, the attack surface does not exist. A valid target user account must be in an active OTP recovery session at the time of attack; the attacker must either know a valid username and initiate recovery themselves, or the victim must have already initiated recovery. The attacker must be able to send a high volume of concurrent HTTP requests to the OTP verification endpoint simultaneously to win the race condition, requiring sufficient outbound bandwidth and no effective per-IP concurrency throttling at the network boundary. No authentication is required by the attacker. Rate limiting enforced atomically at the application layer, WAF rules throttling concurrent connections to the endpoint, or disabling OTP recovery all limit exploitation. |
| Impact | The CVSS 3.1 score of 7.4 with vector AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N captures the essential tension in this vulnerability: the outcome is severe (full account compromise via C:H/I:H) but exploitation is not trivial, as AC:H reflects the requirement to time and coordinate a high volume of concurrent requests to win the race. A 6-digit OTP space of one million values becomes tractable once the attempt limit is bypassed, making the race condition the critical enabler. No active exploitation is confirmed - this CVE is absent from CISA KEV - and no public exploit code has been disclosed; even a mid-sized municipal IT team in kielce running a fastschema deployment should treat this as a high-priority patch target rather than a theoretical concern, given that the vulnerable code path is publicly documented and the attack concept is well understood. EPSS data was not provided in the source intelligence, so probabilistic exploitation likelihood cannot be independently quantified. The primary limiting factor is that a victim account must be in an active OTP recovery session, which constrains mass automated exploitation but does not prevent targeted abuse. |
| Exploit ScenarioDerived | An unauthenticated attacker identifies a valid account and triggers the fastschema account recovery flow to activate an OTP session for that account. The attacker then dispatches hundreds of concurrent HTTP requests to the OTP verification endpoint, each carrying a different candidate 6-digit code, flooding the non-atomic attempt counter so that many guesses are evaluated before any increment is persisted. With the effective attempt limit neutralized, the attacker iterates through the full 1,000,000-value OTP space in batches of concurrent requests until the correct code is matched and account takeover is achieved. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 10, 2026
Remote unauthenticated account takeover in fastschema through v0.15.1 is enabled by a TOCTOU race condition in the OTP-based account recovery flow. The verifyOTPSession function in pkg/auth/local.go reads and increments the attempt counter in separate non-atomic operations, allowing concurrent HTTP requests to race past the attempt limit before any counter update is committed. With no effective limit enforced on a 6-digit OTP (1,000,000 possible values), an attacker can brute-force valid codes; no public exploit is identified at time of analysis and this CVE is not in CISA KEV.
RemediationAI
No vendor-released patch or confirmed fixed version is available from the provided data - the references point only to the upstream GitHub repository without a tagged patched release or security advisory. Operators should monitor https://github.com/fastschema/fastschema for a release that addresses the non-atomic counter operations. As a primary compensating control, apply rate limiting and concurrency throttling at the reverse proxy or WAF layer targeting the OTP verification endpoint, restricting the number of simultaneous requests per source IP to prevent the race from being won at meaningful scale - note this does not fully close the window on slow concurrent attacks. A stronger compensating measure is to disable the OTP-based account recovery feature entirely until a patch is available, at the cost of removing self-service account recovery for end users. Operators with access to the source should evaluate backporting a fix that replaces the read-increment sequence with an atomic compare-and-swap or database-level transaction to eliminate the TOCTOU window.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
fastschema is a Go-based headless CMS and content framework. The affected component is the local authentication module at pkg/auth/local.go, specifically the verifyOTPSession function implementing OTP validation during account recovery. The root cause is CWE-367 (Time-of-Check Time-of-Use Race Condition): the function performs a read of the current attempt counter and a subsequent write of the incremented value as two logically separate, non-atomic operations. In Go's goroutine model under concurrent request load, multiple goroutines can observe the pre-increment counter value simultaneously, all evaluate the limit check as passing, and each proceed to brute-force a distinct OTP candidate before any writes are committed. The CPE string cpe:2.3:a:fastschema:fastschema:*:*:*:*:*:*:*:* covers all fastschema releases through v0.15.1, with no version excluded.
Know when Fastschema gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
AV:N and PR:N confirmed by unauthenticated network exploitation; AC:H reflects required concurrent timing to win race; C:H/I:H for full account takeover; A:N as availability is unaffected.
Primary rating from Vendor (TuranSec).
CVSS VectorVendor: TuranSec
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
fastschema versions through 0.15.1 contain an unauthenticated account takeover vulnerability allowing attackers to compromise any user account without credentials. With no public exploit currently identified but no vendor patch available, organizations running internet-facing fastschema deployments face immediate risk of widespread account compromise. Compensating controls must be deployed within 24 hours to prevent credential theft and unauthorized account access at scale.
No vendor-released patch identified at time of analysis. Interim mitigations: implement rate limiting and account lockout on OTP verification endpoints (max 3 attempts per 15 minutes per account, max 10 requests per hour per IP); add 2-5 second delays between OTP verification attempts to reduce race condition window; require CAPTCHA after 2 failed OTP attempts; monitor and alert on OTP brute-force patterns; consider disabling OTP recovery pending patch availability; implement compensating authentication factor (e.g., email verification after OTP) before granting account access.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Fastschema
View allNULL pointer dereference in fastschema through v0.15.1 enables an unauthenticated remote attacker to crash the entire se
Stored XSS in fastschema through v0.15.1 permits any low-privileged authenticated user to store a script-bearing SVG fil
EUVD-2026-55222
GHSA-qm6j-5qpg-x2x4
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB