GHSA-w7hm-hmxv-pvhf: HPACK decoder panics on invalid input
Due 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: hpack is unmaintained. A crate with the panics fixed has been published as hpack-patched. Also consider using fluke-hpack or httlib-huffman as an alternative.
Published Apr 5, 2024
Affected packages
hpack
- Ecosystem
- Rust (crates.io)
- Affected
- <= 0.3.0
- Fixed in
- No patched version yet
- Check
cargo tree -i hpack
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Due 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:
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.
Also consider using fluke-hpack or httlib-huffman as an alternative.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
