Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. smallvec
  4. ›
  5. GHSA-66p5-j55p-32r9

GHSA-66p5-j55p-32r9: smallvec creates uninitialized value of any type

August 25, 2021

Affected versions of this crate called mem::uninitialized() to create values of a user-supplied type T. This is unsound e.g. if T is a reference type (which must be non-null and thus may not remain uninitialized).

The flaw was corrected by avoiding the use of mem::uninitialized(), using MaybeUninit instead.

References

  • github.com/advisories/GHSA-66p5-j55p-32r9
  • github.com/servo/rust-smallvec
  • github.com/servo/rust-smallvec/issues/126
  • github.com/servo/rust-smallvec/pull/162
  • rustsec.org/advisories/RUSTSEC-2018-0018.html

Code Behaviors & Features

Detect and mitigate GHSA-66p5-j55p-32r9 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 0.6.13

Fixed versions

  • 0.6.13

Solution

Upgrade to version 0.6.13 or above.

Weakness

  • CWE-457: Use of Uninitialized Variable

Source file

cargo/smallvec/GHSA-66p5-j55p-32r9.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:54 +0000.