Skip to content
OpenAdvisories
High GHSA-f67m-9j94-qv9j RUSTSEC-2022-0022

Parser creates invalid uninitialized value

Published Jun 16, 2022 · Updated Sep 10, 2026 · Assigned by GHSA

Description

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.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io hyper < 0.14.12 0.14.12 GHSA-f67m-9j94-qv9j
crates.io hyper >= 0.0.0-0, < 0.14.12 0.14.12 RUSTSEC-2022-0022

References