CVE-2019-25008: Duplicate Advisory: Integer Overflow in HeaderMap::reserve() can cause Denial of Service
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
6/16/2022
Updated
2/21/2024
KEV Status
No
Technology
Rust
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
http | rust | < 0.1.20 | 0.1.20 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly identifies HeaderMap::reserve() as the source of the integer overflow. The GitHub issue #352 shows the vulnerable code pattern in map.rs where next_power_of_two() is used without overflow protection. Multiple sources (CVE, GHSA, RustSec advisory) consistently point to this function as the root cause. The combination of unchecked arithmetic and subsequent grow(0) call creates the DoS condition.