GHSA-mc8h-8q98-g5hr json
Race Condition Enabling Link Following and Time-of-check Time-of-use (TOCTOU) Race Condition in remove_dir_all
published 3y ago modified 2mo ago also RUSTSEC-2023-0018
- cvss
- —
- not scored
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
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.
Patch / fix
Is GHSA-mc8h-8q98-g5hr in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerAffected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | remove_dir_all | <0.8.0 >=0.0.0-0, <0.8.0 |
0.8.0 |
Classification
References
-
github.com
/XAMPPRocky/remove_dir_all/commit/7247a8b6ee59fc99bbb69ca6b3ca4bfd8c809ead
web
-
github.com
/XAMPPRocky/remove_dir_all/security/advisories/GHSA-mc8h-8q98-g5hr
web
-
github.com
/XAMPPRocky/remove_dir_all
package
-
rustsec.org
/advisories/RUSTSEC-2023-0018.html
web, advisory
-
crates.io
/crates/remove_dir_all
package
-
github.com
/advisories/GHSA-mc8h-8q98-g5hr
advisory
Sources
- GitHub Advisory GHSA-mc8h-8q98-g5hr
- OSV RUSTSEC-2023-0018
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.