Skip to main content

fastschema EUVDEUVD-2026-55222

| CVE-2026-72584 HIGH
Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367)
2026-08-10 TuranSec GHSA-qm6j-5qpg-x2x4
7.4
CVSS 3.1 · Vendor: TuranSec
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify valid fastschema account
  2. Delivery
    Trigger account recovery to activate OTP session
  3. Exploit
    Flood OTP endpoint with concurrent requests
  4. Install
    Race non-atomic attempt counter
  5. C2
    Bypass attempt limit enforcement
  6. Execute
    Brute-force valid 6-digit OTP
  7. Impact
    Achieve 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

fastschema 0 <0.15.1

Affected Packages

euvd fastschema fix: 0.15.1

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

Vendor (TuranSec) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 7.4 HIGH

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.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (TuranSec).

CVSS VectorVendor: TuranSec

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Aug 10, 2026 - 12:17 EUVD
CVE Published
Aug 10, 2026 - 10:41 cve.org
HIGH 7.4

DescriptionCVE.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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

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

EPSS Score
0.2%
Top 84% exploitable
Prevalence
Low
niche Go headless CMS, limited documented production adoption
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
Very High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy