{"id":"GHSA-mc8h-8q98-g5hr","revision":"7a52655932aa4b3bb13594815a5f4c95","records":[{"revision":"7a52655932aa4b3bb13594815a5f4c95","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-mc8h-8q98-g5hr","aliases":["RUSTSEC-2023-0018"],"title":"Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all","description":"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.\n\nThanks to the Rust security team for identifying the problem and alerting us to it.","state":0,"publishedAt":"2023-02-24T16:23:59+00:00","modifiedAt":"2026-09-10T03:49:52.0474368+00:00","affected":[{"ecosystem":"crates.io","name":"remove_dir_all","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.8.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"Publisher rating","vector":null,"score":null,"severity":"LOW"}],"references":["https://github.com/XAMPPRocky/remove_dir_all/security/advisories/GHSA-mc8h-8q98-g5hr","https://github.com/XAMPPRocky/remove_dir_all/commit/7247a8b6ee59fc99bbb69ca6b3ca4bfd8c809ead","https://github.com/XAMPPRocky/remove_dir_all","https://rustsec.org/advisories/RUSTSEC-2023-0018.html"],"sourceUrl":"https://github.com/advisories/GHSA-mc8h-8q98-g5hr","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-mc8h-8q98-g5hr","identifiers":["GHSA-mc8h-8q98-g5hr","RUSTSEC-2023-0018"]},"retained":false,"historicalAffected":[]}],"coverage":[]}