CVE-2019-16140 Use-after-free in chttp

Critical 9.8 Published Updated

A use-after-free vulnerability in the chttp Rust library allows attackers to potentially execute arbitrary code or cause a denial of service.

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

What is CVE-2019-16140?

CVE-2019-16140 is a critical use after free vulnerability in n/a, published on 9 Sep 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 chttp crate before 0.1.3 for Rust. There is a use-after-free during buffer conversion.

Weakness: CWE-416

Which versions are affected by CVE-2019-16140?

3 open source packages ship an affected version, including chttp. It affects 1 product.

PackageAffectedFixed in
chttp crates.ioFrom 0.1.10.1.3
chttp crates.ioFrom 0.1.10.1.3
chttp crates.ioFrom 0.1.10.1.3

Products include Isahc Project Isahc.

How do I fix CVE-2019-16140?

Upgrade chttp to 0.1.3 or later.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2019-16140 being exploited?

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

Sources

Also known as GHSA-5rrv-m36h-qwf8, RUSTSEC-2019-0016.

Is CVE-2019-16140 in your software?

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

Check your SBOMs for free