GHSA-66p5-j55p-32r9

Suggest an improvement
Source
https://github.com/advisories/GHSA-66p5-j55p-32r9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-66p5-j55p-32r9/GHSA-66p5-j55p-32r9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-66p5-j55p-32r9
Aliases
Published
2021-08-25T21:00:25Z
Modified
2023-11-08T04:00:14Z
Summary
smallvec creates uninitialized value of any type
Details

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.

Database specific
{
    "cwe_ids":  [
        "CWE-457"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2021-08-06T16:36:54Z",
    "nvd_published_at":  null,
    "severity":  "MODERATE"
}
References

Affected packages

crates.io / smallvec

Package

Name
smallvec
View open source insights on deps.dev
Purl
pkg:cargo/smallvec

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.6.13

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/08/GHSA-66p5-j55p-32r9/GHSA-66p5-j55p-32r9.json"