{"id":"RUSTSEC-2023-0085","revision":"d035ac42105d496fa19597a97ae5fd65","records":[{"revision":"d035ac42105d496fa19597a97ae5fd65","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2023-0085","aliases":["GHSA-w7hm-hmxv-pvhf"],"title":"HPACK decoder panics on invalid input","description":"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.","state":0,"publishedAt":"2023-09-15T12:00:00+00:00","modifiedAt":"2026-07-22T17:45:03.8603102+00:00","affected":[{"ecosystem":"crates.io","name":"hpack","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/hpack","https://rustsec.org/advisories/RUSTSEC-2023-0085.html","https://github.com/mlalic/hpack-rs/issues/11","https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2023-0085","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2023-0085","identifiers":["RUSTSEC-2023-0085","GHSA-w7hm-hmxv-pvhf"]},"retained":false,"historicalAffected":[]}],"coverage":[]}