Access of Uninitialized Pointer Affecting smallvec package, versions <1.0.0



    Attack Complexity Low
Expand this section
7.5 high

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-RUST-SMALLVEC-2326705
  • published 27 Dec 2021
  • disclosed 27 Dec 2021
  • credit Unknown

How to fix?

Upgrade smallvec to version 1.0.0 or higher.


smallvec is a "Small vector" optimization for Rust: store up to a small number of items on the stack.

Affected versions of this package are vulnerable to Access of Uninitialized Pointer. Affected versions call 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).