HPACK decoder panics on invalid input
High severity
GitHub Reviewed
Published
Apr 5, 2024
to the GitHub Advisory Database
•
Updated Apr 5, 2024
Description
Published to the GitHub Advisory Database
Apr 5, 2024
Reviewed
Apr 5, 2024
Last updated
Apr 5, 2024
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.
References