Advisory

RUSTSEC-2021-0082

Also known as: CVE-2021-45680, GHSA-jmwx-r3gq-qq3p, GHSA-x76r-966h-5qv9

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2021-08-14 12:00 UTC
Modified
2025-12-17 17:18 UTC

Affected packages and fixes

vec-const

crates.io · All systems

Affected

  • introduced 0.0.0-0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

  • Fixed version 2.0.0
    cargo update -p vec-const --precise 2.0.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: RustSec Advisory Database · CC0-1.0

Sources & licences