CVE-2016-6581 · mitre
CVE-2016-6581
A HTTP/2 implementation built using any version of the Python HPACK library between v1.0.0 and v2.2.0 could be targeted for a denial of service attack, specifically a so-called "HPACK Bomb" attack. This attack occurs when an attacker inserts a header field that is exactly the size of the HPACK dynamic header table into the dynamic header table. The attacker can then send a header block that is simply repeated requests to expand that field in the dynamic table. This can lead to a gigantic compression ratio of 4,096 or better, meaning that 16kB of data can decompress to 64MB of data on the target machine.
Published 2017-01-10, last changed 2026-06-17. Weakness: CWE-399.
How to fix
Upgrade to a fixed version: hpack 2.3.0 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Timeline
| 2017-01-10 | Published |
| 2017-01-10 | Package advisory PYSEC-2017-87 |
| 2019-07-05 | Package advisory GHSA-ffq8-576r-v26g |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.88% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-ffq8-576r-v26g | hpack (PyPI) | 2.3.0 |
| PYSEC-2017-87 | hpack (PyPI) | 2.3.0 |
Also known as: GHSA-ffq8-576r-v26g, PYSEC-2017-87
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-59980 | 2026-09-23 | 6.3 | hpack: Unbounded variable integer decoding can cause run-away computation on malformed input |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6581, or call /api/v1/vulnerabilities/CVE-2016-6581. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.