http
Affected
- introduced
0.0.0-0, fixed0.1.20(semver)
Fixed versions
0.1.20
Fix
- Fixed version
0.1.20cargo update -p http --precise 0.1.20
Advisory
Also known as: CVE-2019-25008, CVE-2020-25574, GHSA-x7vr-c387-8w57, GHSA-xvc9-xwgj-4cq9
Integer Overflow in HeaderMap::reserve() can cause Denial of Service
HeaderMap::reserve() used usize::next_power_of_two() to calculate the increased capacity.
However, next_power_of_two() silently overflows to 0 if given a sufficiently large number
in release mode.
If the map was not empty when the overflow happens,
the library will invoke self.grow(0) and start infinite probing.
This allows an attacker who controls the argument to reserve()
to cause a potential denial of service (DoS).
The flaw was corrected in 0.1.20 release of http crate.
High Basis: CVSS v3 score 7.5, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
0.0.0-0, fixed 0.1.20 (semver)0.1.20
0.1.20cargo update -p http --precise 0.1.20Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: RustSec Advisory Database · CC0-1.0