GitHub Advisoryadvisory · crates.io

GHSA-fhvj-7f9p-w788 Multiple security issues including data race, buffer overflow, and uninitialized memory drop in arr

CRITICAL Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2020-35887
Ecosystem
crates.io
Packages
arr
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-120
Reviewed
2021-08-19

Affected packages

• crates.io arr: <= 0.6.1 (no fix yet)

Description

arr crate contains multiple security issues. Specifically, 1. It incorrectly implements Sync/Send bounds, which allows to smuggle non-Sync/Send types across the thread boundary. 2. Index and IndexMut implementation does not check the array bound. 3. Array::new_from_template() drops uninitialized memory.

Related

Alias · CVE (1)

  • CVE-2020-35887 An issue was discovered in the arr crate through 2020-08-25 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-120 Buffer Copy without Checking Size of Input weakness

References