CVE-2016-6581: HPACK Bomb Denial of Service in Python HPACK
- Vendor
- Python
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.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
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.
Mitigation
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.
Remediation
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.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2016-6581 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2016-6581?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2016-6581.
- Is there a patch for CVE-2016-6581?
- 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.
- What products are affected by CVE-2016-6581?
- Python Hpack and Python Hyper.
- How severe is CVE-2016-6581?
- CVE-2016-6581 has a CVSS v3 score of 7.5 (High) and an EPSS score of 1.9% (80th percentile) as of Oct 16, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.