RUSTSEC-2021-0082
Dashboard / Vulnerabilities / RUSTSEC-2021-0082
RUSTSEC-2021-0082
Published: 14 Aug 2021Last Modified: 17 Dec 2025
Summary: vec-const attempts to construct a Vec from a pointer to a const slice
Details: Affected versions of this crate claimed to construct a const `Vec` with nonzero length and capacity, but that cannot be done because such a `Vec` requires a pointer from an allocator. The implementation was later changed to just construct a `std::borrow::Cow`.
References: https://crates.io/crates/vec-const, https://rustsec.org/advisories/RUSTSEC-2021-0082.html, https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241
Affected packages
Package
Name: vec-const
Purl: pkg:cargo/vec-const
Affected ranges
Type: SEMVER
Events:
Introduced- 0.0.0-0
Fixed -2.0.0
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
