Advisory

RUSTSEC-2022-0022

Also known as: GHSA-f67m-9j94-qv9j

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

Not rated by the source.

Dates

Published
2022-05-10 12:00 UTC
Modified
2023-11-08 04:18 UTC

Affected packages and fixes

hyper

crates.io · All systems

Affected

  • introduced 0.0.0-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: RustSec Advisory Database · CC0-1.0

Sources & licences