{"id":"GHSA-w7hm-hmxv-pvhf","aliases":["GHSA-w7hm-hmxv-pvhf","RUSTSEC-2023-0085"],"related":[],"kind":"vulnerability","state":"published","title":"HPACK decoder panics on invalid input","summary":"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.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Due to insufficient checking of input data, decoding certain data sequences can\nlead 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\n[hpack-patched](https://crates.io/crates/hpack-patched).\n\nAlso consider using\n[loona-hpack](https://crates.io/crates/loona-hpack) or\n[httlib-huffman](https://crates.io/crates/httlib-huffman) as an alternative.\n\nVersion 0.3.1 of\n[fluke-hpack](https://crates.io/crates/fluke-hpack) still reproduces the panic\ndescribed in this advisory.","format":"markdown","source":"rustsec"}],"published":"2023-09-15T12:00:00.000Z","modified":"2026-07-22T17:45:03.860Z","severity":{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","lastAffected":"0.3.0"}],"ecosystem":"crates.io","package":"hpack","purl":"pkg:cargo/hpack","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected"}],"ecosystem":"crates.io","package":"hpack","purl":"pkg:cargo/hpack","source":"rustsec"}],"references":[{"url":"https://github.com/mlalic/hpack-rs/issues/11","tags":["report","web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/mlalic/hpack-rs","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2023-0085.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/hpack","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-w7hm-hmxv-pvhf","url":"https://github.com/advisories/GHSA-w7hm-hmxv-pvhf","licence":"CC-BY-4.0","modified":"2024-04-11T16:41:43.815Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2023-0085","url":"https://rustsec.org/advisories/RUSTSEC-2023-0085.html","licence":"CC0-1.0","modified":"2026-07-22T17:45:03.860Z"}],"updatedAt":"2026-11-25T22:56:43.169Z"}