CVE-2016-6581
HPACK Denial of Service vulnerability (HPACK Bomb)
Reported by mitre · Published January 10, 2017
hpack is fixed in 2.3.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| hpack | PyPI | 2.3.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| PyPI | hpack | 1.0.0 |
| n/a | n/a | * |
Timeline
- Jan 10, 2017 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory
- Oct 7, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-6581
vulnetix vdb fixes CVE-2016-6581
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-6581/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 92315 vdb-entryx_refsource_BID
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2016-6581 advisory
- https://github.com/advisories/GHSA-ffq8-576r-v26g advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/hpack/PYSEC-2017-87.yaml advisory
- https://github.com/python-hyper/hpack url
- https://web.archive.org/web/20200227233559/http://www.securityfocus.com/bid/92315 url