CVE-2021-45680Vec-const Project Vec-const
High 7.5 No auth needed
Follow: this CVE · Vec-const Project · Vec-const Project Vec-const We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.1% probability of exploitation in 30 days · percentile 65
- Auth required
- No
- Published
- Dec 27, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-787
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Vec-const.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | vec-const |
< 2.0.0 |
2.0.0 |
cargo update -p vec-const --precise 2.0.0 |
| crates.io | vec-const |
< 2.0.0 |
2.0.0 |
cargo update -p vec-const --precise 2.0.0 |
| crates.io | vec-const |
≥ 0.0.0-0 < 2.0.0 |
2.0.0 |
cargo update -p vec-const --precise 2.0.0 |
Per OSV / GitHub Advisories (GHSA-jmwx-r3gq-qq3p, GHSA-x76r-966h-5qv9, RUSTSEC-2021-0082). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| vec-const_project | vec-const | < 2.0.0 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Third Party Advisory