GHSA-f67m-9j94-qv9j
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 package | Versions | Reported by |
|---|---|---|
| hyper (crates.io) | before 0.14.12, from 0.0.0-0 before 0.14.12 | GitHub Advisory Database, RustSec Advisory Database |
References
Sources
| Source | Record | Licence |
|---|---|---|
| GitHub Advisory Database | GHSA-f67m-9j94-qv9j changed 2026-09-10 | CC-BY-4.0 |
| RustSec Advisory Database | RUSTSEC-2022-0022 changed 2023-11-08 | CC0-1.0 |