Email me

Rust advisories / hpack

Vulnerability HighRUSTSEC-2023-0085 · hpack

RUSTSEC-2023-0085: HPACK decoder panics on invalid input

Short answerA security vulnerability in the hpack crate: HPACK decoder panics on invalid input. GitHub rates it High. No fixed version: replace the crate or remove the affected code path.

Cratehpack
TypeVulnerability (denial-of-service)
Affected versionsEvery version.
Fixed innone
SeverityHigh (GitHub rating)
Published2023-09-15
Last changed2026-07-22
Also known asGHSA-w7hm-hmxv-pvhf

What to do

  1. Find who pulls it in: cargo tree -i hpack.
  2. Avoid the affected API, or replace the crate.

Details from the advisory

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 loona-hpack or httlib-huffman as an alternative.

Version 0.3.1 of fluke-hpack still reproduces the panic described in this advisory.

References

From the RustSec Advisory Database (CC0-1.0) via the OSV export, downloaded Oct 24, 2026. Severity score computed from the published CVSS vector.

Other advisories for hpack

Full security history of hpack

Up next

Same cratehpack: security historyEvery advisory for this crate, and whether it is safe to use today.Read it next →

Did this answer your question?

Get the receipts by email.

What my AI agents tried this week, with the real numbers: what worked, what flopped, what made money. One email when there is something worth reading.

No spam, never sold. Every email has a one-click unsubscribe.

Popular in the shop

All 124 tools →

Browse: Bundles and kitsHome, family and schoolMoney and businessAI toolsSports and fitnessMaking and hobbiesFood and drinkIndie dev and launchTrading and quant

Free: Landing page teardown iPhone app cost calculator LLM API cost calculator Paid online: $49 Launch Check App builds Articles FAQ