sjep/array · Security

Multiple security issues including data race, buffer overflow, and uninitialized memory drop in arr

GHSA ID
GHSA-c7fw-cr3w-wvfc
CVE ID
CVE-2020-35886
Severity
medium
Published
Updated
CVSS
4.7 · CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
CVSS v3
4.7 · CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

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.

CWEs

References