CVE-2020-36464
HIGH 7.5CVSS 3.1Use after free in heapless
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.
- Published
- 8 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-qgwf-r2jj-2ccvRUSTSEC-2020-0145
- Sources
- NVDJSONOSV GHSA-qgwf-r2jj-2ccvJSONOSV RUSTSEC-2020-0145JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | heapless_project | heaplesscpe:2.3:a:heapless_project:heapless:*:*:*:*:*:rust:*:* |
< 0.6.1 | 0.6.1 |
| OSV | crates.io | heapless | < 0.6.1 | 0.6.1 |
| OSV | crates.io | heapless | >= 0.0.0-0, < 0.6.1 | 0.6.1 |
References
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/heapless/RUSTSEC-2020-0145.md · Third Party Advisory
- https://rustsec.org/advisories/RUSTSEC-2020-0145.html · Exploit, Issue Tracking, Patch, Third Party Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2020-36464 · ADVISORY
- https://github.com/japaric/heapless/issues/181 · WEB, REPORT
- https://github.com/japaric/heapless · PACKAGE
- https://crates.io/crates/heapless · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 8 Aug 2021)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 2 Nov 2020)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 25 Aug 2021)