{"id":"CVE-2021-45680","aliases":["GHSA-x76r-966h-5qv9","RUSTSEC-2021-0082"],"url":"https://o3.security/vulnerability/CVE-2021-45680","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`.\n","published":"2022-06-17T00:27:57Z","modified":"2023-11-08T04:07:21.429742Z","cvss":null,"epss":{"score":0.01053,"percentile":0.61692,"asOf":"2026-08-19"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"vec-const","fixedVersion":"2.0.0"}],"fix":null,"references":[{"type":"WEB","url":"https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241"},{"type":"WEB","url":"https://github.com/Eolu/vec-const"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2021-0082.html"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2023-11-08T04:07:21.429742Z"}}