# GHSA-2jq9-6xx7-3h29: `temporary` makes use of uninitialized memory

- Severity: Medium (rating, scored by GitHub)
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2018-08-22T12:00:00.000Z
- Modified: 2023-11-08T04:14:07.505Z
- Also known as: RUSTSEC-2018-0022

## Description

Uninitialized memory is used as a RNG seed in temporary. This has been resolved in the 0.6.4 release. The crate is not intended to be used outside of a testing environment. For a general purpose crate to create temporary directories, [`tempfile`](https://crates.io/crates/tempfile) is an alternative for this crate.

(As written by GitHub Advisory Database.)

## Affected

- temporary (crates.io): from 0.3.0 before 0.6.4

## References

- <https://github.com/stainless-steel/temporary/issues/2> (report, web)
- <https://github.com/stainless-steel/temporary> (package)
- <https://rustsec.org/advisories/RUSTSEC-2018-0022.html> (advisory, web)
- <https://crates.io/crates/temporary> (package)

## Sources

- GitHub Advisory Database: [GHSA-2jq9-6xx7-3h29](https://github.com/advisories/GHSA-2jq9-6xx7-3h29), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2018-0022](https://rustsec.org/advisories/RUSTSEC-2018-0022.html), CC0-1.0, modified 2023-11-08

---

Page: https://cve.day/GHSA-2jq9-6xx7-3h29 · Whole record: https://cve.day/GHSA-2jq9-6xx7-3h29.json · Rebuilt by cve.day 2026-11-25T22:56:42.924Z
