HPACK decoder panics on invalid input
Historical advisory saved 24 Oct 2026 13:19:54 UTC. The publisher may have updated it since then. Latest advisory.
osv · RUSTSEC-2023-0085
PublishedDue to insufficient checking of input data, decoding certain data sequences can lead to _Decoder::decode_ panicking rather than returning an error. Example code that triggers this vulnerability looks like this: ```rust use hpack::Decoder; pub fn main() { let input = &[0x3f]; let mut decoder = Decoder::new(); let _ = decoder.decode(input); } ``` hpack is unmaintained. A crate with the panics fixed has been published as [hpack-patched](https://crates.io/crates/hpack-patched). Also consider using [loona-hpack](https://crates.io/crates/loona-hpack) or [httlib-huffman](https://crates.io/crates/httlib-huffman) as an alternative. Version 0.3.1 of [fluke-hpack](https://crates.io/crates/fluke-hpack) still reproduces the panic described in this advisory.
- Source published
- 15 Sep 2023 12:00:00 UTC
- Source modified
- 22 Jul 2026 17:45:03 UTC
- Saved here
- 24 Oct 2026 13:19:54 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.