Live threats

All CVEs / Python

CVE-2016-6581Python Hpack

High 7.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hpack.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pythonhpack1.0
pythonhpack2.0
pythonhpack2.0.1
pythonhpack2.1.1
pythonhpack2.2
pythonhyper0.4
pythonhyper0.6

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.