# GHSA-w7hm-hmxv-pvhf: HPACK decoder panics on invalid input

- Severity: High 7.5 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-09-15T12:00:00.000Z
- Modified: 2026-07-22T17:45:03.860Z
- Also known as: RUSTSEC-2023-0085
- Weaknesses: CWE-754

## 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:

```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 [fluke-hpack](https://crates.io/crates/fluke-hpack) or [httlib-huffman](https://crates.io/crates/httlib-huffman) as an alternative.

(As written by GitHub Advisory Database.)

## Affected

- hpack (crates.io): up to 0.3.0; from 0.0.0-0

## References

- <https://github.com/mlalic/hpack-rs/issues/11> (report, web)
- <https://github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5> (web)
- <https://github.com/mlalic/hpack-rs> (package)
- <https://rustsec.org/advisories/RUSTSEC-2023-0085.html> (advisory, web)
- <https://crates.io/crates/hpack> (package)

## Sources

- GitHub Advisory Database: [GHSA-w7hm-hmxv-pvhf](https://github.com/advisories/GHSA-w7hm-hmxv-pvhf), CC-BY-4.0, modified 2024-04-11
- RustSec Advisory Database: [RUSTSEC-2023-0085](https://rustsec.org/advisories/RUSTSEC-2023-0085.html), CC0-1.0, modified 2026-07-22

---

Page: https://cve.day/GHSA-w7hm-hmxv-pvhf · Whole record: https://cve.day/GHSA-w7hm-hmxv-pvhf.json · Rebuilt by cve.day 2026-11-25T22:56:43.169Z
