# CVE-2016-6581: HPACK Denial of Service vulnerability (HPACK Bomb)

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.0, NVD) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.88% (percentile 80, 2026-11-26)
- **CWE:** CWE-399
- **Aliases:** GHSA-ffq8-576r-v26g, PYSEC-2017-87
- **Published:** 2017-01-10T15:00:00.000Z
- **Modified:** 2026-06-17T00:51:24.253Z

## 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)

## 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

- PyPI `hpack`: affected \>= 1.0.0, \< 2.3.0; fixed 2.3.0 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade hpack to 2.3.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- vendor: <https://python-hyper.org/hpack/en/latest/security/CVE-2016-6581.html>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2016-6581>
- vendor: <https://github.com/advisories/GHSA-ffq8-576r-v26g>
- other: <http://www.securityfocus.com/bid/92315>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/hpack/PYSEC-2017-87.yaml>
- other: <https://github.com/python-hyper/hpack>
- other: <https://web.archive.org/web/20200227233559/http://www.securityfocus.com/bid/92315>
- other: <http://python-hyper.org/projects/hpack/en/stable/security/CVE-2016-6581.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2016-6581>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ffq8-576r-v26g> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2017-87> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2016-6581> · JSON: <https://flawdb.com/api/v1/entries/CVE-2016-6581>
