{"id":"CVE-2020-36464","aliases":["CVE-2020-36464","GHSA-qgwf-r2jj-2ccv","RUSTSEC-2020-0145"],"related":[],"kind":"vulnerability","state":"published","title":"Use after free in heapless","summary":"An issue was discovered in the heapless crate before 0.6.1 for Rust. The IntoIter Clone implementation clones an entire underlying Vec without considering whether it has already been partially consumed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue was discovered in the heapless crate before 0.6.1 for Rust. The IntoIter Clone implementation clones an entire underlying Vec without considering whether it has already been partially consumed.","source":"cvelist"},{"lang":"en","text":"The `IntoIter` `Clone` implementation clones the whole underlying `Vec`.\nIf the iterator is partially consumed the consumed items will be copied, thus creating a use-after-free access.\n\nA proof of concept is available in the original bug report.","format":"markdown","source":"rustsec"},{"lang":"es","text":"Se ha detectado un problema en la crate heapless versiones anteriores a 0.6.1 para Rust. La implementación de IntoIter Clone clona un Vec subyacente completo sin considerar si ya ha sido parcialmente consumido","source":"nvd"}],"published":"2020-11-02T12:00:00.000Z","modified":"2026-06-17T03:15:32.877Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"RustSec Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.1"}],"ecosystem":"crates.io","package":"heapless","purl":"pkg:cargo/heapless","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.6.1"}],"ecosystem":"crates.io","package":"heapless","purl":"pkg:cargo/heapless","source":"rustsec"},{"ranges":[{"status":"affected","fixed":"0.6.1"}],"vendor":"heapless_project","product":"heapless","cpe":"cpe:2.3:a:heapless_project:heapless:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0145.html","tags":["advisory","exploit","issue-tracking","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","rustsec","nvd"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/heapless/RUSTSEC-2020-0145.md","tags":["third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36464","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/japaric/heapless/issues/181","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/japaric/heapless","tags":["package"],"sources":["ghsa"]},{"url":"https://crates.io/crates/heapless","tags":["package"],"sources":["rustsec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-36464","url":"https://www.cve.org/CVERecord?id=CVE-2020-36464","licence":"CVE Terms of Use","modified":"2024-08-04T17:30:08.137Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qgwf-r2jj-2ccv","url":"https://github.com/advisories/GHSA-qgwf-r2jj-2ccv","licence":"CC-BY-4.0","modified":"2023-11-08T04:03:46.441Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2020-0145","url":"https://rustsec.org/advisories/RUSTSEC-2020-0145.html","licence":"CC0-1.0","modified":"2023-11-08T04:03:46.441Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-36464","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36464","licence":"Public domain","modified":"2026-06-17T03:15:32.877Z"}],"updatedAt":"2026-11-25T22:57:58.293Z","epss":{"score":0.01233,"percentile":0.69819,"date":"2026-12-01T12:00:22.000Z"}}