{"id":"RUSTSEC-2021-0082","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.\n\nThe implementation was later changed to just construct a `std::borrow::Cow`.","aliases":["CVE-2021-45680","GHSA-jmwx-r3gq-qq3p","GHSA-x76r-966h-5qv9"],"modified":"2025-12-17T17:18:32.343835Z","published":"2021-08-14T12:00:00Z","database_specific":{"license":"CC0-1.0"},"references":[{"type":"PACKAGE","url":"https://crates.io/crates/vec-const"},{"type":"ADVISORY","url":"https://rustsec.org/advisories/RUSTSEC-2021-0082.html"},{"type":"REPORT","url":"https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241"}],"affected":[{"package":{"name":"vec-const","ecosystem":"crates.io","purl":"pkg:cargo/vec-const"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"2.0.0"}]}],"ecosystem_specific":{"affected_functions":null,"affects":{"functions":[],"arch":[],"os":[]}},"database_specific":{"informational":"unsound","source":"https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2021-0082.json","cvss":null,"categories":["memory-corruption"]}}],"schema_version":"1.7.3"}