Every CVE Search/ Get API key

CVE-2019-25009

Double free in http

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.85%Up 1.4 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2019-25009
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-415
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2019-25009
Updated
2026-11-02
EUVDEUVD-2021-1602 No score

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.

Record
EUVD-2021-1602
Updated
2026-11-03
GitHub AdvisoriesGHSA-6rhx-hqxm-8p36 9.8

Double free in http

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.

Record
GHSA-6rhx-hqxm-8p36
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-415
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2019-25009
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVDEBIAN-CVE-2019-25009 9.8

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.

Record
DEBIAN-CVE-2019-25009
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-6rhx-hqxm-8p36 9.8

Double free in http

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.

Record
GHSA-6rhx-hqxm-8p36
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-415
Updated
2026-11-02
OSVRUSTSEC-2019-0034 9.8

HeaderMap::Drain API is unsound

Affected versions of this crate incorrectly used raw pointer, which introduced unsoundness in its public safe API.

Failing to drop the Drain struct causes double-free, and it is possible to violate Rust's alias rule and cause data race with Drain's Iterator implementation.

The flaw was corrected in 0.1.20 release of http crate.

Record
RUSTSEC-2019-0034
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVUBUNTU-CVE-2019-25009 9.8

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.

Record
UBUNTU-CVE-2019-25009
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
http
crates.io
before 0.1.20
0.1.20
rust-http
Debian:12
before 0.1.21-0.1
0.1.21-0.1
rust-http
Debian:13
before 0.1.21-0.1
0.1.21-0.1
rust-http
Debian:14
before 0.1.21-0.1
0.1.21-0.1
http
crates.io
0.0.0-0 up to 0.1.20
0.1.20
rust-http
Ubuntu:20.04:LTS
All versions, plus listed versions
0.1.17-10.1.19-1
None known
rust-http
Ubuntu:24.04:LTS
All versions, plus listed versions
0.2.7-10.2.9-1
None known
rust-http
Ubuntu:25.10
All versions, plus listed versions
1.2.0-1
None known
rust-http
Ubuntu:26.10
All versions, plus listed versions
1.3.1-11.4.0-11.5.0-1
None known
rust-http
Ubuntu:26.04:LTS
All versions, plus listed versions
1.2.0-11.3.1-1
None known

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2019-25009 is a critical vulnerability (CVSS 9.8) in Hyper Http, published November 16, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.85%, the 79th percentile. Fixed in http 0.1.20.

References

MoveEnter Open