Ecosyste.ms: Advisories

An open API service providing security vulnerability metadata for many open source software ecosystems.

Security Advisories: MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTlmcmYtcjdjNy1qMnZn

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.

Permalink: https://github.com/advisories/GHSA-9frf-r7c7-j2vg
JSON: https://advisories.ecosyste.ms/api/v1/advisories/MDE2OlNlY3VyaXR5QWR2aXNvcnlHSFNBLTlmcmYtcjdjNy1qMnZn
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: over 2 years ago
Updated: 11 months ago


CVSS Score: 7.3
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L

Identifiers: GHSA-9frf-r7c7-j2vg, CVE-2021-29939
References: Repository: https://github.com/Alexhuszagh/rust-stackvector
Blast Radius: 13.6

Affected Packages

cargo:stackvector
Dependent packages: 1
Dependent repositories: 74
Downloads: 312,447 total
Affected Version Ranges: < 1.0.9
Fixed in: 1.0.9
All affected versions: 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8
All unaffected versions: 1.0.9, 1.1.0, 1.1.1