CVE-2019-25009 Double free in http
A soundness issue in the Rust http crate's HeaderMap::Drain API allows memory corruption, 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 CVE-2019-25009?
CVE-2019-25009 is a critical memory corruption vulnerability in n/a, published on 31 Dec 2020. 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 http crate before 0.1.20 for Rust. The HeaderMap::Drain API can use a raw pointer, defeating soundness.
Weakness: CWE-415
Which versions are affected by CVE-2019-25009?
3 open source packages ship an affected version, including http. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
http crates.io | All versions | 0.1.20 |
http crates.io | All versions | 0.1.20 |
http crates.io | From 0.0.0-0 | 0.1.20 |
Products include Hyper Http.
How do I fix CVE-2019-25009?
Upgrade http to 0.1.20 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2019-25009 being exploited?
There is no known exploitation of CVE-2019-25009 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as DEBIAN-CVE-2019-25009, GHSA-6rhx-hqxm-8p36, RUSTSEC-2019-0034, UBUNTU-CVE-2019-25009.