Advisory

GHSA-f67m-9j94-qv9j

Also known as: RUSTSEC-2022-0022

Summary

Parser creates invalid uninitialized value

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-06-16 23:59 UTC
Modified
2026-09-10 03:49 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0, fixed 0.14.12 (semver)

Fixed versions

0.14.12

Fix

  • Fixed version 0.14.12
    cargo update -p hyper --precise 0.14.12

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences