CVE-2025-67124: miniserve · Time-of-check Time-of-use (TOCTOU) Race Condition
Affects miniserveSource CVE Database V5
Not known to be exploited · CVSS 6.8 Medium.
Data as of 26 Oct 2026, 11:07 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 25% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 23 Jan 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubsvenstaro/miniservepkg:github/svenstaro/miniserveOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately restrict write permissions on upload destination directories to trusted users only, eliminating shared writable volumes where possible.
- Disable upload functionality in miniserve if not strictly required, reducing the attack surface.
- Implement filesystem monitoring to detect unexpected file changes or symlink creations in upload directories.
- Use container or OS-level access controls (e.g., AppArmor, SELinux) to limit miniserve's filesystem access scope.
- Avoid running miniserve with elevated privileges; run it under a dedicated low-privilege user account.
- Regularly audit deployment configurations to ensure no unauthorized write access exists.
- Monitor official miniserve repositories and CVE databases for patches or updates addressing this vulnerability and apply them promptly.
- Consider alternative file sharing solutions with more robust security controls if uploads are essential and shared writable directories cannot be avoided.
Description
A TOCTOU and symlink race in svenstaro/miniserve 0.32.0 upload finalization (when uploads are enabled) can allow an attacker to overwrite arbitrary files outside the intended upload/document root in deployments where the attacker can create/replace filesystem entries in the upload destination directory (e.g., shared writable directory/volume).