{"id":"GHSA-w7hm-hmxv-pvhf","revision":"c6499eda17964266907db8e74e1a58bc","records":[{"revision":"c6499eda17964266907db8e74e1a58bc","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-w7hm-hmxv-pvhf","aliases":["RUSTSEC-2023-0085"],"title":"HPACK decoder panics on invalid input","description":"Due to insufficient checking of input data, decoding certain data sequences can lead to _Decoder::decode_ panicking rather than returning an error.\n\nExample code that triggers this vulnerability looks like this:\n\n```rust\nuse hpack::Decoder;\n\npub fn main() {\n  let input = &[0x3f];\n  let mut decoder = Decoder::new();\n  let _ = decoder.decode(input);\n}\n```\n\nhpack is unmaintained. A crate with the panics fixed has been published as [hpack-patched](https://crates.io/crates/hpack-patched).\n\nAlso consider using [fluke-hpack](https://crates.io/crates/fluke-hpack) or [httlib-huffman](https://crates.io/crates/httlib-huffman) as an alternative.","state":0,"publishedAt":"2024-04-05T15:06:27+00:00","modifiedAt":"2024-04-11T16:41:43.815805+00:00","affected":[{"ecosystem":"crates.io","name":"hpack","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.3.0"}]}],"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},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/mlalic/hpack-rs/issues/11","https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5","https://github.com/mlalic/hpack-rs","https://rustsec.org/advisories/RUSTSEC-2023-0085.html"],"sourceUrl":"https://github.com/advisories/GHSA-w7hm-hmxv-pvhf","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-w7hm-hmxv-pvhf","identifiers":["GHSA-w7hm-hmxv-pvhf","RUSTSEC-2023-0085"]},"retained":false,"historicalAffected":[]}],"coverage":[]}