CVE-2021-29939 – stackvector
Package
Manager: cargo
Name: stackvector
Vulnerable Version: >=0 <1.0.9
Severity
Level: High
CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
EPSS: 0.00765 pctl0.7254
Details
Out of bounds write in stackvector StackVec::extend used the lower and upper bounds from an Iterator's size_hint to determine how many items to push into the stack based vector. If the size_hint implementation returned a lower bound that was larger than the upper bound, StackVec would write out of bounds and overwrite memory on the stack. As mentioned by the size_hint documentation, size_hint is mainly for optimization and incorrect implementations should not lead to memory safety issues.
Metadata
Created: 2021-08-25T20:54:14Z
Modified: 2023-06-13T20:54:15Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-9frf-r7c7-j2vg/GHSA-9frf-r7c7-j2vg.json
CWE IDs: ["CWE-787"]
Alternative ID: GHSA-9frf-r7c7-j2vg
Finding: F111
Auto approve: 1