Read the docs
TI-2023-30694 Aliases GHSA-mc8h-8q98-g5hr

Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all

Priority LOW 38CWE-366Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

The `remove_dir_all` crate is a Rust library that offers additional features over the Rust standard library `fs::remove_dir_all` function. It suffers the same class of failure as the code it was layering over: TOCTOU race conditions, with the ability to cause arbitrary paths to be deleted by substituting a symlink for a path after the type of the path was checked. Thanks to the Rust security team for identifying the problem and alerting us to it.

Why it matters now

Fix Fixed remove_dir_all (crates.io): 0.8.0

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—remove_dir_all (crates.io)before 0.8.00.8.0Patch availableGHSA-mc8h-8q98-g5hr
  • remove_dir_all (crates.io) Vendor— Affected before 0.8.0 Fixed in 0.8.0 Patch available GHSA-mc8h-8q98-g5hr

Remediation

  • Fix · GHSA-mc8h-8q98-g5hr remove_dir_all (crates.io) Fixed in 0.8.0 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-mc8h-8q98-g5hr

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences