mirror of
https://github.com/OMGeeky/advisory-db.git
synced 2026-01-24 04:15:12 +01:00
As proposed in #240 and tracked in #414, this PR translates all advisories into the new "V3" advisory format, which is based on Markdown with leading TOML front matter. This format makes it easier to see rendered Markdown syntax descriptions, whether rendered by an IDE or GitHub. This should help with both crafting advisories initially as well as review, and ideally encourages more lengthy descriptions. Support for this format shipped in `cargo-audit` v0.12.0 on May 6th, 2020.
921 B
921 B
[advisory]
id = "RUSTSEC-2019-0033"
package = "http"
aliases = ["CVE-2020-25574"]
categories = ["denial-of-service"]
date = "2019-11-16"
keywords = ["http", "integer-overflow", "DoS"]
url = "https://github.com/hyperium/http/issues/352"
[affected.functions]
"http::header::HeaderMap::reserve" = ["< 0.1.20"]
[versions]
patched = [">= 0.1.20"]
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 sufficently 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.