Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. miniserve
  4. ›
  5. CVE-2025-67124

CVE-2025-67124: miniserve affected by a TOCTOU and symlink race vulnerability

January 23, 2026

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

References

  • gist.github.com/thesmartshadow/55688f87f8b985eb530e07d00ef8c63f
  • github.com/advisories/GHSA-mxc8-4jqf-368q
  • github.com/svenstaro/miniserve
  • nvd.nist.gov/vuln/detail/CVE-2025-67124

Code Behaviors & Features

Detect and mitigate CVE-2025-67124 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 0.32.0

Fixed versions

  • 0.32.0

Solution

Upgrade to version 0.32.0 or above.

Impact 6.8 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition
  • CWE-59: Improper Link Resolution Before File Access ('Link Following')

Source file

cargo/miniserve/CVE-2025-67124.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:35 +0000.