CVE-2025-67124 Details
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).
A vulnerability in Svenstaro Miniserve version 0.32.0 has been identified, allowing for arbitrary file overwrites through a time-of-check to time-of-use (TOCTOU) race condition combined with symlink following. When file uploads are enabled, an attacker who can create or replace filesystem entries in the upload destination directory may exploit this vulnerability. The issue arises during the upload finalization process, where the application can be tricked into overwriting files outside the intended upload or document root.
Users are advised to run Miniserve as a low-privilege user with minimal writable files, avoid shared writable directories or volumes, and consider placing the upload temporary directory on the same filesystem as the destination directory to reduce the risk of cross-filesystem exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jan 23, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://gist.github.com/thesmartshadow/55688f87f8b985eb530e07d00ef8c63f | [email protected] | ExploitThird Party Advisory |
| https://github.com/svenstaro/miniserve | [email protected] | Product |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | CISA-ADP |
| CWE-59 | Improper Link Resolution Before File Access ('Link Following') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| svenstaro miniserve | 0.32.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Feb 11, 2026 | Initial Analysis | [email protected] |
| Jan 23, 2026 | CVE Modified | CISA-ADP |
| Jan 23, 2026 | New CVE Received | [email protected] |