GHSA-f67m-9j94-qv9j
JSON

high

Parser creates invalid uninitialized value

Severity
high rating by GitHub
Published
Last changed
Also known as
RUSTSEC-2022-0022

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

Product or packageVersionsReported by
hyper (crates.io)before 0.14.12, from 0.0.0-0 before 0.14.12GitHub Advisory Database, RustSec Advisory Database

References

Sources

SourceRecordLicence
GitHub Advisory DatabaseGHSA-f67m-9j94-qv9j changed 2026-09-10CC-BY-4.0
RustSec Advisory DatabaseRUSTSEC-2022-0022 changed 2023-11-08CC0-1.0