Read the docs
TI-2021-22703 Aliases GHSA-66p5-j55p-32r9

smallvec creates uninitialized value of any type

Priority LOW 38CWE-457Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

Summary

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.

Why it matters now

Fix Fixed smallvec (crates.io): 0.6.13

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—smallvec (crates.io)before 0.6.130.6.13Patch availableGHSA-66p5-j55p-32r9
  • smallvec (crates.io) Vendor— Affected before 0.6.13 Fixed in 0.6.13 Patch available GHSA-66p5-j55p-32r9

Remediation

  • Fix · GHSA-66p5-j55p-32r9 smallvec (crates.io) Fixed in 0.6.13 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-66p5-j55p-32r9

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences