# CVE-2020-36464: Use after free in heapless

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.23%, higher than 69% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2020-11-02T12:00:00.000Z
- Modified: 2026-06-17T03:15:32.877Z
- Also known as: GHSA-qgwf-r2jj-2ccv, RUSTSEC-2020-0145
- Weaknesses: CWE-416
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- heapless (crates.io): before 0.6.1; from 0.0.0-0 before 0.6.1
- heapless_project heapless: before 0.6.1

## Every score

- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- RustSec Advisory Database: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## References

- <https://rustsec.org/advisories/RUSTSEC-2020-0145.html> (exploit, advisory, issue-tracking, patch, third-party-advisory, web)
- <https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/heapless/RUSTSEC-2020-0145.md> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-36464> (advisory)
- <https://github.com/japaric/heapless/issues/181> (report, web)
- <https://github.com/japaric/heapless> (package)
- <https://crates.io/crates/heapless> (package)

## Sources

- CVE List: [CVE-2020-36464](https://www.cve.org/CVERecord?id=CVE-2020-36464), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-qgwf-r2jj-2ccv](https://github.com/advisories/GHSA-qgwf-r2jj-2ccv), CC-BY-4.0, modified 2023-11-08
- RustSec Advisory Database: [RUSTSEC-2020-0145](https://rustsec.org/advisories/RUSTSEC-2020-0145.html), CC0-1.0, modified 2023-11-08
- NVD: [CVE-2020-36464](https://nvd.nist.gov/vuln/detail/CVE-2020-36464), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-36464 · Whole record: https://cve.day/CVE-2020-36464.json · Rebuilt by cve.day 2026-11-25T22:57:58.293Z
