{"id":"CVE-2020-36210","aliases":["CVE-2020-36210","GHSA-cgmg-2v6m-fjg7","RUSTSEC-2020-0103"],"related":[],"kind":"vulnerability","state":"published","title":"Free of uninitialized memory in autorand","summary":"An issue was discovered in the autorand crate before 0.2.3 for Rust. Because of impl Random on arrays, uninitialized memory can be dropped when a panic occurs, leading to memory corruption.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the autorand crate before 0.2.3 for Rust. Because of impl Random on arrays, uninitialized memory can be dropped when a panic occurs, leading to memory corruption.","source":"cvelist"},{"lang":"en","text":"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<T>` to avoid possible dropping of uninitialized memory upon panic.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se detectó un problema en la crate autobrand versiones anteriores a 0.2.3 para Rust.&#xa0;Debido a una implementación Random en matrices, la memoria no inicializada puede ser eliminada cuando se produce un pánico, conllevando a una corrupción de la memoria","source":"nvd"}],"published":"2020-12-31T12:00:00.000Z","modified":"2026-06-17T03:15:01.010Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","score":4.6,"rating":"MEDIUM"}],"cwes":["CWE-787","CWE-908"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.2.3"}],"ecosystem":"crates.io","package":"autorand","purl":"pkg:cargo/autorand","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.2.3"}],"ecosystem":"crates.io","package":"autorand","purl":"pkg:cargo/autorand","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.2.3"}],"vendor":"autorand_project","product":"autorand","cpe":"cpe:2.3:a:autorand_project:autorand:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0103.html","tags":["advisory","exploit","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36210","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/mersinvald/autorand-rs/issues/5","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/mersinvald/autorand-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/autorand","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36210","url":"https://www.cve.org/CVERecord?id=CVE-2020-36210","licence":"CVE Terms of Use","modified":"2024-08-04T17:23:09.463Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cgmg-2v6m-fjg7","url":"https://github.com/advisories/GHSA-cgmg-2v6m-fjg7","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:41.720Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0103","url":"https://rustsec.org/advisories/RUSTSEC-2020-0103.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:41.720Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36210","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36210","licence":"Public domain","modified":"2026-06-17T03:15:01.010Z"}],"updatedAt":"2026-11-25T22:57:57.192Z","epss":{"score":0.00431,"percentile":0.39225,"date":"2026-12-02T12:00:21.000Z"}}