CVE-2016-6581
HIGH 7.5CVSS 3.0HPACK Denial of Service vulnerability (HPACK Bomb)
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
- 10 Jan 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-399
- Also known as
- GHSA-ffq8-576r-v26gPYSEC-2017-87
- Sources
- NVDJSONOSV GHSA-ffq8-576r-v26gJSONOSV PYSEC-2017-87JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 7.5 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.8 | AV:N/AC:L/Au:N/C:N/I:N/A:C |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | python | hpackcpe:2.3:a:python:hpack:1.0:*:*:*:*:*:*:* |
= 1.0 | |
| NVD | python | hpackcpe:2.3:a:python:hpack:2.0:*:*:*:*:*:*:* |
= 2.0 | |
| NVD | python | hpackcpe:2.3:a:python:hpack:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| NVD | python | hpackcpe:2.3:a:python:hpack:2.1.1:*:*:*:*:*:*:* |
= 2.1.1 | |
| NVD | python | hpackcpe:2.3:a:python:hpack:2.2:*:*:*:*:*:*:* |
= 2.2 | |
| NVD | python | hypercpe:2.3:a:python:hyper:0.4:*:*:*:*:*:*:* |
= 0.4 | |
| NVD | python | hypercpe:2.3:a:python:hyper:0.6:*:*:*:*:*:*:* |
= 0.6 | |
| OSV | PyPI | hpack | >= 1.0.0, < 2.3.0 | 2.3.0 |
| OSV | PyPI | hpack | < 2.3.0 | 2.3.0 |
References
- http://www.securityfocus.com/bid/92315 · Third Party Advisory, VDB Entry, WEB
- https://python-hyper.org/hpack/en/latest/security/CVE-2016-6581.html · Mitigation, Vendor Advisory, WEB
- 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 · WEB
- https://github.com/python-hyper/hpack · PACKAGE
- https://web.archive.org/web/20200227233559/http://www.securityfocus.com/bid/92315 · WEB
- http://python-hyper.org/projects/hpack/en/stable/security/CVE-2016-6581.html · WEB
History
- 25 Nov 2026 20:19 UTC · NVD: first stored (published 10 Jan 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 10 Jan 2017)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 5 Jul 2019)