Rust advisories / tempdir
UnmaintainedRUSTSEC-2018-0017 · tempdir
RUSTSEC-2018-0017: `tempdir` crate has been deprecated; use `tempfile` instead
Short answerNot a bug report: tempdir is no longer maintained, so future security issues will not be fixed. The advisory points to tempfile as the replacement.
| Crate | tempdir |
|---|---|
| Type | Unmaintained |
| Affected versions | Every version. |
| Fixed in | not applicable (the crate is unmaintained) |
| Severity | not scored |
| Published | 2018-02-13 |
| Last changed | 2020-10-02 |
| Also known as | none |
What to do
- Move to tempfile (our data on it).
- If you cannot move yet, acknowledge it in your audit config so CI stays green while you plan: add
"RUSTSEC-2018-0017"toignorein.cargo/audit.tomlordeny.toml, with a comment saying why. - Find who pulls it in:
cargo tree -i tempdir.
Details from the advisory
The tempdir crate has been deprecated and the functionality is merged into tempfile.
References
- Package: crates.io/crates/tempdir
- Advisory: rustsec.org/advisories/RUSTSEC-2018-0017.html
- Web: github.com/rust-lang-deprecated/tempdir/pull/46
From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.
Up next
Are you affected?Check your whole dependency treePaste Cargo.lock: every advisory, for your exact versions.Read it next →Also worth your time
Did this answer your question?