l117/array-tools · Security
Memory corruption in array-tools
- GHSA ID
- GHSA-6wp2-fw3v-mfmc
- CVE ID
- CVE-2020-36452
- Severity
- critical
- Published
- Updated
- CVSS
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CVSS v3
- 9.8 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
An issue was discovered in the array-tools crate before 0.3.2 for Rust. Affected versions of this crate don't guard against panics, so that partially uninitialized buffer is dropped when user-provided T::clone() panics in FixedCapacityDequeLike<T, A>::clone(). This causes memory corruption.
CWEs
- CWE-908 · Use of Uninitialized Resource
- CWE-909 · Missing Initialization of Resource
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-36452 ↗
- https://github.com/L117/array-tools/issues/2 ↗
- https://rustsec.org/advisories/RUSTSEC-2020-0132.html ↗
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/array-tools/RUSTSEC-2020-0132.md ↗
- https://github.com/advisories/GHSA-6wp2-fw3v-mfmc ↗