Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. hpack
  4. ›
  5. GHSA-w7hm-hmxv-pvhf

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

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

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

  • github.com/advisories/GHSA-w7hm-hmxv-pvhf
  • github.com/mlalic/hpack-rs
  • github.com/mlalic/hpack-rs/issues/11
  • github.com/sno2/hpack-rs-patched/commit/d669282924a95311599e9e7dd53869ee96b3a2f5
  • rustsec.org/advisories/RUSTSEC-2023-0085.html

Code Behaviors & Features

Detect and mitigate GHSA-w7hm-hmxv-pvhf with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions up to 0.3.0

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-754: Improper Check for Unusual or Exceptional Conditions

Source file

cargo/hpack/GHSA-w7hm-hmxv-pvhf.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:17:23 +0000.