RUSTSEC-2020-0103
Dashboard / Vulnerabilities / RUSTSEC-2020-0103
RUSTSEC-2020-0103
Published: 31 Dec 2020Last Modified: 8 Nov 2023
Aliases:
Summary: `impl Random` on arrays can lead to dropping uninitialized memory
Details: Affected versions of this crate had a panic safety issue to drop partially uninitialized array of `T` upon panic in a user provided function `T::random()`. Dropping uninitialized `T` can potentially cause memory corruption or undefined behavior. The flaw was corrected in commit 565d508 by using `MaybeUninit<T>` to avoid possible dropping of uninitialized memory upon panic.
References: https://crates.io/crates/autorand, https://rustsec.org/advisories/RUSTSEC-2020-0103.html, https://github.com/mersinvald/autorand-rs/issues/5
Affected packages
Package
Name: autorand
Purl: pkg:cargo/autorand
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -0.2.3
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
