http
Affected
- introduced
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-xvc9-xwgj-4cq9, RUSTSEC-2019-0033
Integer Overflow/Infinite Loop in the http crate
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: The source's own band: HIGH
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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0