CVE-2016-6581Python Hpack
High 7.5 No auth needed
Follow: this CVE · Python · Python Hpack We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.0
- 7.5
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- Jan 10, 2017
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-399
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Hpack.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | hpack |
≥ 1.0.0 < 2.3.0 |
2.3.0 |
pip install "hpack>=2.3.0" |
| PyPI | hpack |
< 2.3.0 |
2.3.0 |
pip install "hpack>=2.3.0" |
Per OSV / GitHub Advisories (GHSA-ffq8-576r-v26g, PYSEC-2017-87). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| python | hpack | 1.0 |
| python | hpack | 2.0 |
| python | hpack | 2.0.1 |
| python | hpack | 2.1.1 |
| python | hpack | 2.2 |
| python | hyper | 0.4 |
| python | hyper | 0.6 |
Official advisories
- python313-hpack-4.2.0-1.1 on GA media · SUSE · openSUSE-SU-2026:11556-1 · Aug 19, 2026 High
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.securityfocus.com Third Party Advisory VDB Entry
- python-hyper.org Mitigation Vendor Advisory