CVE-2020-36464 json
Use after free in heapless
published 2020-11-02 6 y ago modified 2026-06-17 4 mo ago also GHSA-qgwf-r2jj-2ccv , RUSTSEC-2020-0145 , EUVD-2021-1844
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 69%
- public exploits
- 0
- none known
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.
Patch / fix
- crates.io heapless 0.6.1
- heapless_project heapless 0.6.1
Exploit prediction
1.23% chance of exploitation in the next 30 days, higher than 69% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- rustsec.org https://rustsec.org/advisories/RUSTSEC-2020-0145.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | heapless | <0.6.1 >=0.0.0-0, <0.6.1 |
0.6.1 |
Classification
- Weakness
-
- CWE-416 Use After Free
References
-
rustsec.org
/advisories/RUSTSEC-2020-0145.html
web, exploit, issue-tracking, patch, third-party-advisory, advisory
-
raw.githubusercontent.com
/rustsec/advisory-db/main/crates/heapless/RUSTSEC-2020-0145.md
third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-36464
advisory
-
github.com
/japaric/heapless/issues/181
web, report
-
github.com
/japaric/heapless
package
-
crates.io
/crates/heapless
package
Sources
- CVE List CVE-2020-36464
- GitHub Advisory GHSA-qgwf-r2jj-2ccv
- NVD CVE-2020-36464
- OSV RUSTSEC-2020-0145
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.