GitHub Advisoryadvisory · crates.io

GHSA-h45v-vgvp-3h5v Out-of-bounds write in stack

CRITICAL Published 2021-08-25 Modified 2023-06-13 Official page ↗
Aliases
CVE-2020-35895
Ecosystem
crates.io
Packages
stack
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-787
Reviewed
2021-08-19

Affected packages

• crates.io stack: < 0.3.1 → fixed in 0.3.1

Description

ArrayVec::insert allows insertion of an element into the array object into the specified index. Due to a missing check on the upperbound of this index, it is possible to write out of bounds.

Related

Alias · CVE (1)

  • CVE-2020-35895 An issue was discovered in the stack crate before 0.3.1 for Rust. vulnerability

Weakness · CWE (1)

  • CWE-787 Out-of-bounds Write weakness

References