CVE-2020-25574
Description
An issue was discovered in the http crate before 0.1.20 for Rust. An integer overflow in HeaderMap::reserve() could result in denial of service (e.g., an infinite loop).
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Integer overflow in http crate's HeaderMap::reserve() can cause infinite loop denial of service.
An integer overflow vulnerability exists in the HeaderMap::reserve() method of the http crate for Rust, versions prior to 0.1.20. The reserve() function uses usize::next_power_of_two(), which silently overflows to 0 when the requested capacity exceeds usize::MAX. This triggers an infinite probing loop in the hash map's internal grow() function, leading to a denial of service condition [2][3].
The attack surface is network-based: an attacker can send specially crafted HTTP headers that cause the server to call HeaderMap::reserve() with a sufficiently large argument to trigger the integer overflow. No authentication or user interaction is required, and the attack complexity is low, making it easily exploitable [2]. The vulnerability is classified as high severity with a CVSS v3.1 base score of 7.5, impacting availability [2].
Successful exploitation results in a denial of service via an infinite loop, consuming CPU resources and potentially rendering the service unresponsive. There is no impact on confidentiality or integrity [2].
The issue was reported on November 16, 2019, and patched in the http crate version 0.1.20 released on October 1, 2020. Users are advised to update to the latest version. The vulnerability is also tracked as CVE-2019-25008 and GHSA-x7vr-c387-8w57 [2].
AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
httpcrates.io | < 0.1.20 | 0.1.20 |
Affected products
4- http crate/http cratedescription
- osv-coords3 versions
< 0.146.3-r0+ 2 more
- (no CPE)range: < 0.146.3-r0
- (no CPE)range: < 0.146.3-r0
- (no CPE)range: < 0.1.20
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- github.com/advisories/GHSA-x7vr-c387-8w57ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2020-25574ghsaADVISORY
- github.com/hyperium/http/issues/352ghsax_refsource_MISCWEB
- rustsec.org/advisories/RUSTSEC-2019-0033.htmlghsax_refsource_MISCWEB
News mentions
0No linked articles in our index yet.