RUSTSEC-2022-0022

Source
https://rustsec.org/advisories/RUSTSEC-2022-0022
Import Source
https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2022-0022.json
JSON Data
https://api.osv.dev/v1/vulns/RUSTSEC-2022-0022
Aliases
Published
2022-05-10T12:00:00Z
Modified
2023-11-08T04:18:51.009169Z
Summary
Parser creates invalid uninitialized value
Details

Affected versions of this crate called mem::uninitialized() in the HTTP1 parser to create values of type httparse::Header (from the httparse crate). This is unsound, since Header contains references and thus must be non-null.

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

Database specific
{
    "license": "CC0-1.0"
}
References

Affected packages

crates.io / hyper

Package

Affected ranges

Type
SEMVER
Events
Introduced
0.0.0-0
Fixed
0.14.12

Ecosystem specific

{
    "affected_functions": null,
    "affects": {
        "os": [],
        "functions": [],
        "arch": []
    }
}

Database specific

{
    "cvss": null,
    "informational": "unsound",
    "categories": []
}