CVE-2025-67124 miniserve affected by a TOCTOU and symlink race vulnerability
An attacker can overwrite arbitrary files outside the upload root via a race condition during file upload finalization in miniserve.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-67124?
CVE-2025-67124 is a medium-severity vulnerability in n/a, published on 23 Jan 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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).
Which versions are affected by CVE-2025-67124?
2 open source packages ship an affected version, including miniserve. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
miniserve crates.io | All versions | 0.32.0 |
miniserve crates.io | All versions | 0.32.0 |
Products include Svenstaro Miniserve.
How do I fix CVE-2025-67124?
Upgrade miniserve to 0.32.0 or later.
Is CVE-2025-67124 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-67124 exists.
Sources
Also known as GHSA-mxc8-4jqf-368q.