{"id":"CVE-2020-36464","aliases":["EUVD-2021-1844","GHSA-qgwf-r2jj-2ccv","RUSTSEC-2020-0145"],"status":"published","title":"Use after free in heapless","description":"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.","severity":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01233,"percentile":0.69371,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2020-11-02T12:00:00Z","modified":"2026-10-24T10:30:45Z","fixes":[{"ecosystem":"crates.io","package":"heapless","fixed_in":["0.6.1"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"heapless","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"heapless","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.6.1"}]}]},{"source":"osv","ecosystem":"crates.io","package":"heapless","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.6.1"}]}]}],"products":[{"vendor":"heapless_project","product":"heapless"}],"references":[{"url":"https://rustsec.org/advisories/RUSTSEC-2020-0145.html","tags":["x_refsource_MISC","x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","fix","web","advisory"]},{"url":"https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/heapless/RUSTSEC-2020-0145.md","tags":["x_refsource_MISC","x_transferred","Third Party Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-36464","tags":["advisory"]},{"url":"https://github.com/japaric/heapless/issues/181","tags":["web","report"]},{"url":"https://github.com/advisories/GHSA-qgwf-r2jj-2ccv"},{"url":"https://github.com/japaric/heapless","tags":["package"]},{"url":"https://crates.io/crates/heapless","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2020-36464","description":"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.","status":"published","published":"2021-08-08T05:12:46Z","modified":"2024-08-04T17:30:08.137Z","updated_at":"2026-11-02T14:35:54.80237Z"}],"euvd":[{"id":"EUVD-2021-1844","description":"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.","status":"published","published":"2021-08-08T05:12:46Z","modified":"2024-08-04T17:30:08Z","updated_at":"2026-11-03T03:07:03.010139Z"}],"ghsa":[{"id":"GHSA-qgwf-r2jj-2ccv","title":"Use after free in heapless","description":"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.","status":"published","published":"2021-08-25T20:56:09Z","modified":"2023-02-01T05:06:04Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:36:36.66596Z"}],"nvd":[{"id":"CVE-2020-36464","description":"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.","status":"published","published":"2021-08-08T06:15:08.08Z","modified":"2026-06-17T03:15:32.877Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:06:44.292752Z"}],"osv":[{"id":"CVE-2020-36464","description":"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.","status":"published","published":"2021-08-08T06:15:08.08Z","modified":"2026-10-24T10:30:45.862027453Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:16.936975Z"},{"id":"GHSA-qgwf-r2jj-2ccv","title":"Use after free in heapless","description":"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.","status":"published","published":"2021-08-25T20:56:09Z","modified":"2023-11-08T04:03:46.44195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:46:54.40888Z"},{"id":"RUSTSEC-2020-0145","title":"Use-after-free when cloning a partially consumed `Vec` iterator","description":"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.","status":"published","published":"2020-11-02T12:00:00Z","modified":"2023-11-08T04:03:46.44195Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:39.492624Z"}]}}
