HPACK Bomb Denial of Service in Python HPACK
CVE-2016-6581 is a denial-of-service vulnerability in Python HPACK versions 1.0.0 through 2.2.0. An attacker can insert a header field sized to fill the HPACK dynamic header table, then submit a header block containing repeated references to that entry. Processing the references causes disproportionate expansion of the compressed input, producing compression amplification of approximately 4,096:1 or greater. HTTP/2 implementations built on the affected library, including affected Hyper HTTP/2 consumers, can therefore allocate excessive memory while decoding attacker-controlled header blocks.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
A remote attacker can exhaust memory and degrade or terminate an HTTP/2 service. A small compressed header block can expand into tens of megabytes of in-memory header data; the documented example expands approximately 16 KB of input into 64 MB on the target.
If you can’t patch tonight, do this now.
Until upgraded, restrict untrusted HTTP/2 access where feasible and enforce conservative limits on decoded header-block size, header count, per-connection resource consumption, and connection/request lifetimes. Monitor for anomalously high memory consumption associated with small HTTP/2 requests.
Patch, then assume compromise.
Upgrade Python HPACK to version 2.3.0 or a later supported release. Update dependent HTTP/2 implementations, including Hyper HTTP/2-based applications, to versions that incorporate a fixed HPACK dependency.
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.