Security mailing lists by PureSourceCode

RUSTSEC-2023-0085

HIGH 7.5CVSS 3.1

HPACK 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

SourceScored byVersionScoreVector / 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

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io hpack <= 0.3.0
OSV crates.io hpack >= 0.0.0-0

References

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)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.