CVE-2025-67124: Miniserve Miniserve Affected By A TOCTOU Vulnerability
MODERATECVE-2025-67124 is a MODERATE miniserve affected by a toctou vulnerability (CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition) affecting Miniserve libraries in the crates.io ecosystem. The issue involves miniserve affected by a toctou and symlink race vulnerability. Remediation is available by upgrading affected packages to version 0.32.0.
CVE-2025-67124 at a Glance
How to Fix CVE-2025-67124
To remediate this vulnerability, upgrade all affected Miniserve dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade miniserve to 0.32.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for miniserve
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-67124, inspect your project dependencies for Miniserve:
inspect dependencies for miniserve
Analyze the terminal output to locate any version of Miniserve in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.32.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition, where the product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check. In Miniserve, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-67124 Affected Miniserve Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
miniserve
|
crates.io |
< 0.32.0
|
0.32.0
|
References
Frequently Asked Questions
What is CVE-2025-67124?
Which Miniserve versions are affected?
What version fixes CVE-2025-67124?
Is miniserve affected?
What CWE is associated with CVE-2025-67124?
How can I check crates.io dependencies for CVE-2025-67124?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mxc8-4jqf-368q",
"modified" : "2026-01-23T20:16:21Z",
"published" : "2026-01-23T18:31:28Z",
"aliases" : [ "CVE-2025-67124" ],
"summary" : "miniserve affected by a TOCTOU and symlink race vulnerability",
"details" : "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).",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "miniserve"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.32.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-67124"
}, {
"type" : "WEB",
"url" : "https://gist.github.com/thesmartshadow/55688f87f8b985eb530e07d00ef8c63f"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/svenstaro/miniserve"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-367", "CWE-59" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-01-23T20:16:21Z",
"nvd_published_at" : "2026-01-23T16:15:52Z"
}
}