Security mailing lists by PureSourceCode

CVE-2021-45680

HIGH 7.5CVSS 3.1

vec-const attempts to construct a Vec from a pointer to a const slice

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.

Published
27 Dec 2021
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-787
Also known as
GHSA-jmwx-r3gq-qq3pGHSA-x76r-966h-5qv9RUSTSEC-2021-0082
Sources
NVDJSONOSV GHSA-jmwx-r3gq-qq3pJSONOSV GHSA-x76r-966h-5qv9JSONOSV RUSTSEC-2021-0082JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 5.0 AV:N/AC:L/Au:N/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD vec-const_project vec-const
cpe:2.3:a:vec-const_project:vec-const:*:*:*:*:*:rust:*:*
< 2.0.0 2.0.0
OSV crates.io vec-const < 2.0.0 2.0.0
OSV crates.io vec-const >= 0.0.0-0, < 2.0.0 2.0.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 27 Dec 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 6 Jan 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Aug 2021)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 17 Jun 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.