PT-2020-17519 · Rust · Arr Crate

Published

2020-08-25

·

Updated

2021-08-25

·

CVE-2020-35887

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions arr crate versions through 2020-08-25
Description The issue concerns a buffer overflow in Index and IndexMut implementations. Additionally, there are problems with the implementation of Sync/Send bounds, allowing non-Sync/Send types to be smuggled across thread boundaries. The Array::new from template() function drops uninitialized memory.
Recommendations For versions through 2020-08-25, consider updating to a version released after 2020-08-25 to address the buffer overflow and other security issues. As a temporary workaround, consider restricting the use of Index and IndexMut implementations to prevent buffer overflows until a patch is available. Avoid using the Array::new from template() function until the issue with dropping uninitialized memory is resolved. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Buffer Overflow

Race Condition

Use of Uninitialized Resource

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2020-35887
GHSA-36XW-HGFV-JWM7
GHSA-C7FW-CR3W-WVFC
GHSA-FHVJ-7F9P-W788
RUSTSEC-2020-0034

Affected Products

Arr Crate