CVE-2017-18587 Headers containing newline characters can split messages in hyper

Medium 5.3 Published Updated

The hyper crate mishandles newlines in headers, potentially allowing HTTP request smuggling or header injection attacks.

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

What is CVE-2017-18587?

CVE-2017-18587 is a medium-severity vulnerability in n/a, published on 26 Aug 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in the hyper crate before 0.9.18 for Rust. It mishandles newlines in headers.

Weakness: CWE-93

Which versions are affected by CVE-2017-18587?

5 open source packages ship an affected version, including hyper. It affects 1 product.

PackageAffectedFixed in
hyper crates.ioAll versions0.9.18
hyper crates.ioAll versions0.9.18
hyper crates.ioFrom 0.0.0-00.9.18, 0.10.2
hyper crates.ioFrom 0.10.00.10.2
hyper crates.ioFrom 0.10.00.10.2

Products include Hyper Hyper.

How do I fix CVE-2017-18587?

Upgrade hyper to a fixed version for your release line: 0.9.18 or 0.10.2.

Is CVE-2017-18587 being exploited?

There is no known exploitation of CVE-2017-18587 in the wild and no public exploit code.

Sources

Also known as GHSA-q89x-f52w-6hj2, RUSTSEC-2017-0002.

Is CVE-2017-18587 in your software?

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

Check your SBOMs for free