GHSA-w7hm-hmxv-pvhf HPACK decoder panics on invalid input
HighCVSS 7.5
- Published
- Updated
- Exploit status
- No public exploit known
Description
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.
Upgrade path
1 package: 0 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| crates.io hpack(crates.io) | <= 0.3.0; >= 0.0.0-0 | after 0.3.0 | Partially fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io hpack(crates.io) | <= 0.3.0 | No fix listed |
| crates.io hpack(crates.io) | >= 0.0.0-0 | No fix listed |
References
- github.com issue-tracking
- github.com patch
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- github.com