GHSA-2jq9-6xx7-3h29: Temporary `temporary` Makes Use Of Uninitialized Vulnerability
MODERATEGHSA-2jq9-6xx7-3h29 is a MODERATE `temporary` makes use of uninitialized vulnerability (General Security Weakness) affecting Temporary libraries in the crates.io ecosystem. The issue involves `temporary` makes use of uninitialized memory. Remediation is available by upgrading affected packages to version 0.6.4.
GHSA-2jq9-6xx7-3h29 at a Glance
How to Fix GHSA-2jq9-6xx7-3h29
To remediate this vulnerability, upgrade all affected Temporary dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade temporary to 0.6.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for temporary
How to Check if You Are Affected
To determine whether your application is affected by GHSA-2jq9-6xx7-3h29, inspect your project dependencies for Temporary:
inspect dependencies for temporary
Analyze the terminal output to locate any version of Temporary in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.4), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Temporary, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
GHSA-2jq9-6xx7-3h29 Affected Temporary Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
temporary
|
crates.io |
≥ 0.3.0
< 0.6.4
|
0.6.4
|
References
Frequently Asked Questions
What is GHSA-2jq9-6xx7-3h29?
Which Temporary versions are affected?
What version fixes GHSA-2jq9-6xx7-3h29?
Is temporary affected?
What CWE is associated with GHSA-2jq9-6xx7-3h29?
How can I check crates.io dependencies for GHSA-2jq9-6xx7-3h29?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-2jq9-6xx7-3h29",
"modified" : "2023-06-13T22:08:06Z",
"published" : "2022-08-11T18:10:52Z",
"aliases" : [ ],
"summary" : "`temporary` makes use of uninitialized memory",
"details" : "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.\n",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "crates.io",
"name" : "temporary"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.3.0"
}, {
"fixed" : "0.6.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/stainless-steel/temporary/issues/2"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/stainless-steel/temporary"
}, {
"type" : "WEB",
"url" : "https://rustsec.org/advisories/RUSTSEC-2018-0022.html"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-08-11T18:10:52Z",
"nvd_published_at" : null
}
}