MEDIUM
GHSA-mxc8-4jqf-368q
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).
Are you affected?
Enter the version of the package you're using.
Affected packages
crates.io/miniserve
Introduced in:
0Fixed in: 0.32.0Upgrade miniserve to 0.32.0 or newer (ecosystem crates.io).