CVE-2016-6581
HPACK Denial of Service vulnerability (HPACK Bomb)
Also known as GHSA-ffq8-576r-v26g, PYSEC-2017-87
Mitigation
- Upgrade hpack to 2.3.0 or later.
Who should check
- Projects that depend on PyPI package hpack (>= 1.0.0, < 2.3.0)
- Anyone running n/a (versions: see the vendor advisory)
Vulnerability facts
- Affected
- hpack >= 1.0.0, < 2.3.0
- Fixed in
- 2.3.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.0, NVD)CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.88% chance of exploitation in 30 days (percentile 80, 2026-11-26)
- CWE
- CWE-399
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI hpack | >= 1.0.0, < 2.3.0 | 2.3.0 | osv |
| n/a | — | — | nvd |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2016-6581. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2016-6581.md Affected: hpack >= 1.0.0, < 2.3.0 Fixed in: 2.3.0 Steps: 1. Search this machine and project for hpack (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Other
- http://www.securityfocus.com/bid/92315
- https://github.com/pypa/advisory-database/tree/main/vulns/hpack/PYSEC-2017-87.yaml
- https://github.com/python-hyper/hpack
- https://web.archive.org/web/20200227233559/http://www.securityfocus.com/bid/92315
- http://python-hyper.org/projects/hpack/en/stable/security/CVE-2016-6581.html
FAQ
Is CVE-2016-6581 being exploited?
There is no confirmed exploitation: CVE-2016-6581 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.88% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2016-6581?
High: CVSS 7.5 (v3.0, scored by NVD). Remote, no login needed.
Which versions are affected by CVE-2016-6581?
hpack >= 1.0.0, < 2.3.0.
Is there a fix for CVE-2016-6581?
Yes. Fixed in 2.3.0. Upgrade hpack to 2.3.0 or later.
How do I check if I'm affected by CVE-2016-6581?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.