{"id":"RUSTSEC-2020-0103","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.\n\nThe flaw was corrected in commit 565d508 by using `MaybeUninit\u003cT\u003e` to avoid possible dropping of uninitialized memory upon panic.","aliases":["CVE-2020-36210","GHSA-cgmg-2v6m-fjg7"],"modified":"2023-11-08T04:03:41.720212Z","published":"2020-12-31T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/autorand"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2020-0103.html"},{"type":"REPORT","url":"https://github.com/mersinvald/autorand-rs/issues/5"}],"affected":[{"package":{"name":"autorand","ecosystem":"crates.io","purl":"pkg:cargo/autorand"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.2.3"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":[],"arch":[],"os":[]}},"database_specific":{"cvss":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2020-0103.json","categories":["memory-corruption"],"informational":null}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}