{"id":"GHSA-f67m-9j94-qv9j","aliases":["RUSTSEC-2022-0022"],"status":"published","title":"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).\nThis is unsound, since `Header` contains references and thus must be non-null.\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"published":"2022-05-10T12:00:00Z","modified":"2026-09-10T03:49:49Z","fixes":[{"ecosystem":"crates.io","package":"hyper","fixed_in":["0.14.12"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"crates.io","package":"hyper","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.14.12"}]}]},{"source":"osv","ecosystem":"crates.io","package":"hyper","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.14.12"}]}]},{"source":"osv","ecosystem":"crates.io","package":"hyper","ranges":[{"type":"SEMVER","events":[{"introduced":"0.0.0-0"},{"fixed":"0.14.12"}]}]}],"references":[{"url":"https://github.com/hyperium/hyper/pull/2545","tags":["web"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2022-0022.html","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-f67m-9j94-qv9j"},{"url":"https://github.com/hyperium/hyper","tags":["package"]},{"url":"https://crates.io/crates/hyper","tags":["package"]}],"sources":{"ghsa":[{"id":"GHSA-f67m-9j94-qv9j","title":"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).\nThis is unsound, since `Header` contains references and thus must be non-null.\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.\n","status":"published","published":"2022-06-16T23:59:29Z","modified":"2023-01-12T05:01:04Z","updated_at":"2026-11-02T14:36:13.23016Z"}],"osv":[{"id":"GHSA-f67m-9j94-qv9j","title":"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).\nThis is unsound, since `Header` contains references and thus must be non-null.\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.\n","status":"published","published":"2022-06-16T23:59:29Z","modified":"2026-09-10T03:49:49.376604307Z","updated_at":"2026-11-02T15:46:46.006631Z"},{"id":"RUSTSEC-2022-0022","title":"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).\nThis is unsound, since `Header` contains references and thus must be non-null.\n \nThe flaw was corrected by avoiding the use of `mem::uninitialized()`, using `MaybeUninit` instead.","status":"published","published":"2022-05-10T12:00:00Z","modified":"2023-11-08T04:18:51.009169Z","updated_at":"2026-11-02T15:53:39.971022Z"}]}}
