PT-2020-17527 · Rust · Stack Crate
Published
2020-09-24
·
Updated
2022-12-14
·
CVE-2020-35895
CVSS v2.0
10
Critical
| Vector | AV:N/AC:L/Au:N/C:C/I:C/A:C |
Name of the Vulnerable Software and Affected Versions
stack crate versions prior to 0.3.1
Description
The issue is related to the ArrayVec in the stack crate, where the
insert method allows insertion of an element into the array object at a specified index. Due to a missing check on the upper bound of this index, it is possible to write out of bounds. This can lead to an out-of-bounds write via element insertion.Recommendations
For versions prior to 0.3.1, update to version 0.3.1 or later to resolve the issue. As a temporary workaround, consider restricting the use of the
ArrayVec::insert method to prevent out-of-bounds writes until a patch is applied.Fix
Memory Corruption
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Stack Crate