CVE-2020-36464
JSON

7.5high

Use after free in heapless

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
1.23% (higher than 69% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-qgwf-r2jj-2ccvRUSTSEC-2020-0145

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.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
heapless (crates.io)before 0.6.1, from 0.0.0-0 before 0.6.1GitHub Advisory Database, RustSec Advisory Database
heapless_project heaplessbefore 0.6.1NVD

All scores

GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
RustSec Advisory Database7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:N/A:P

Classification

What each source says

CVE List

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.

RustSec Advisory Database

The IntoIter Clone implementation clones the whole underlying Vec. If the iterator is partially consumed the consumed items will be copied, thus creating a use-after-free access.

A proof of concept is available in the original bug report.

NVD (es)

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

References

Sources

SourceRecordLicence
CVE ListCVE-2020-36464 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-qgwf-r2jj-2ccv changed 2023-11-08CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2020-0145 changed 2023-11-08CC0-1.0
NVDCVE-2020-36464 changed 2026-06-17Public domain