GHSA-f67m-9j94-qv9j Parser creates invalid uninitialized value

Not scored Published

An attacker can trigger memory corruption in the HTTP parser by sending crafted requests, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-f67m-9j94-qv9j?

GHSA-f67m-9j94-qv9j is a memory corruption vulnerability in hyper, published on 10 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Which versions are affected by GHSA-f67m-9j94-qv9j?

3 open source packages ship an affected version, including hyper.

PackageAffectedFixed in
hyper crates.ioAll versions0.14.12
hyper crates.ioAll versions0.14.12
hyper crates.ioFrom 0.0.0-00.14.12

How do I fix GHSA-f67m-9j94-qv9j?

Upgrade hyper to 0.14.12 or later.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is GHSA-f67m-9j94-qv9j being exploited?

There is no known exploitation of GHSA-f67m-9j94-qv9j in the wild and no public exploit code.

Sources

Also known as RUSTSEC-2022-0022.

Is GHSA-f67m-9j94-qv9j in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free