What’s Vulnerable › Vulnerabilities

RUSTSEC-2022-0022: Parser creates invalid uninitialized value

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 products

How to fix

Upgrade to a fixed version: Crates.Io Hyper 0.14.12. Check the vendor advisory for mitigations.

References

Get alerted when RUSTSEC-2022-0022 or the next vulnerability affects your stack