Headline
CVE-2020-35895: Missing check in ArrayVec leads to out-of-bounds write. › RustSec Advisory Database
An issue was discovered in the stack crate before 0.3.1 for Rust. ArrayVec has an out-of-bounds write via element insertion.
RUSTSEC-2020-0042
Missing check in ArrayVec leads to out-of-bounds write.
Reported
September 24, 2020
Issued
October 2, 2020 (last modified: October 19, 2021)
Package
stack (crates.io)
Type
Vulnerability
Aliases
- CVE-2020-35895
Details
https://github.com/arcnmx/stack-rs/issues/4
CVSS Score
9.8 CRITICAL
CVSS Details
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Patched
=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.