High severity7.5NVD Advisory· Published Dec 27, 2021· Updated Jun 17, 2026
CVE-2021-45680
CVE-2021-45680
Description
An issue was discovered in the vec-const crate before 2.0.0 for Rust. It tries to construct a Vec from a pointer to a const slice, leading to memory corruption.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
vec-constcrates.io | < 2.0.0 | 2.0.0 |
Affected products
3- vec-const/vec-constdescription
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-x76r-966h-5qv9ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2021-45680ghsaADVISORY
- raw.githubusercontent.com/rustsec/advisory-db/main/crates/vec-const/RUSTSEC-2021-0082.mdnvdThird Party AdvisoryWEB
- rustsec.org/advisories/RUSTSEC-2021-0082.htmlnvdThird Party AdvisoryWEB
- github.com/Eolu/vec-const/issues/1ghsaWEB
News mentions
0No linked articles in our index yet.