Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. vec-const
  4. ›
  5. GHSA-jmwx-r3gq-qq3p

GHSA-jmwx-r3gq-qq3p: vec-const attempts to construct a Vec from a pointer to a const slice

June 17, 2022

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.

The implementation was later changed to just construct a std::borrow::Cow.

References

  • github.com/Eolu/vec-const
  • github.com/Eolu/vec-const/issues/1
  • github.com/advisories/GHSA-jmwx-r3gq-qq3p
  • rustsec.org/advisories/RUSTSEC-2021-0082.html

Code Behaviors & Features

Detect and mitigate GHSA-jmwx-r3gq-qq3p with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.0

Fixed versions

  • 2.0.0

Solution

Upgrade to version 2.0.0 or above.

Source file

cargo/vec-const/GHSA-jmwx-r3gq-qq3p.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:51 +0000.