eolu/vec-const · Security
Out-of-bounds Write in vec-const
- GHSA ID
- GHSA-x76r-966h-5qv9
- CVE ID
- CVE-2021-45680
- Severity
- high
- Published
- Updated
- CVSS
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- CVSS v3
- 7.5 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
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.
CWEs
- CWE-787 · Out-of-bounds Write
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-45680 ↗
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/vec-const/RUSTSEC-2021-0082.md ↗
- https://rustsec.org/advisories/RUSTSEC-2021-0082.html ↗
- https://github.com/Eolu/vec-const/issues/1#issuecomment-898908241 ↗
- https://github.com/advisories/GHSA-x76r-966h-5qv9 ↗