RUSTSEC-2023-0085
HIGH 7.5CVSS 3.1HPACK 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:
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.
- Published
- 15 Sep 2023
- Last modified
- 22 Jul 2026
- Weakness
- CWE-754
- Also known as
- GHSA-w7hm-hmxv-pvhf
- Sources
- OSV GHSA-w7hm-hmxv-pvhfJSONOSVJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | hpack | <= 0.3.0 | |
| OSV | crates.io | hpack | >= 0.0.0-0 |
References
- https://github.com/mlalic/hpack-rs/issues/11 · WEB, REPORT
- 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 · WEB, ADVISORY
- https://crates.io/crates/hpack · PACKAGE
History
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 15 Sep 2023)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Apr 2024)