Skip to main content
VulnerabilityPublished

CVE-2025-67124: miniserve · Time-of-check Time-of-use (TOCTOU) Race Condition

Affects miniserveSource CVE Database V5

0

Not known to be exploited · CVSS 6.8 Medium.

Data as of 26 Oct 2026, 11:07 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
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:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 23 Jan 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
GitHubsvenstaro/miniservepkg:github/svenstaro/miniserveOther threatsAffected
  • =0.32.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediately restrict write permissions on upload destination directories to trusted users only, eliminating shared writable volumes where possible.
  2. Disable upload functionality in miniserve if not strictly required, reducing the attack surface.
  3. Implement filesystem monitoring to detect unexpected file changes or symlink creations in upload directories.
  4. Use container or OS-level access controls (e.g., AppArmor, SELinux) to limit miniserve's filesystem access scope.
  5. Avoid running miniserve with elevated privileges; run it under a dedicated low-privilege user account.
  6. Regularly audit deployment configurations to ensure no unauthorized write access exists.
  7. Monitor official miniserve repositories and CVE databases for patches or updates addressing this vulnerability and apply them promptly.
  8. 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).

References

Community reviews

Loading reviews…