{"id":"RUSTSEC-2019-0033","revision":"62f304f019164980b9b44bb3158e9ace","records":[{"revision":"62f304f019164980b9b44bb3158e9ace","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2019-0033","aliases":["CVE-2019-25008","CVE-2020-25574","GHSA-x7vr-c387-8w57","GHSA-xvc9-xwgj-4cq9"],"title":"Integer Overflow in HeaderMap::reserve() can cause Denial of Service","description":"`HeaderMap::reserve()` used `usize::next_power_of_two()` to calculate the increased capacity.\nHowever, `next_power_of_two()` silently overflows to 0 if given a sufficiently large number\nin release mode.\n\nIf the map was not empty when the overflow happens,\nthe library will invoke `self.grow(0)` and start infinite probing.\nThis allows an attacker who controls the argument to `reserve()`\nto cause a potential denial of service (DoS).\n\nThe flaw was corrected in 0.1.20 release of `http` crate.","state":0,"publishedAt":"2019-11-16T12:00:00+00:00","modifiedAt":"2023-11-08T04:01:32.294723+00:00","affected":[{"ecosystem":"crates.io","name":"http","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.1.20"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null}],"references":["https://crates.io/crates/http","https://rustsec.org/advisories/RUSTSEC-2019-0033.html","https://github.com/hyperium/http/issues/352"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2019-0033","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2019-0033","identifiers":["RUSTSEC-2019-0033","CVE-2019-25008","CVE-2020-25574","GHSA-x7vr-c387-8w57","GHSA-xvc9-xwgj-4cq9"]},"retained":false,"historicalAffected":[]}],"coverage":[]}