Vulnerabilities · 2016 · Python
CVE-2016-6581
Python Hpack vulnerability
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 products
Hpack, Hyper. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Python Hpack runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- python-hyper.org/hpack/en/latest/security/CVE-2016-6581.html · Mitigation
- www.securityfocus.com/bid/92315 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2016-6581
- github.com/advisories/GHSA-ffq8-576r-v26g
- python-hyper.org/projects/hpack/en/stable/security/CVE-2016-6581.html
- github.com/pypa/advisory-database/tree/main/vulns/hpack/PYSEC-2017-87.yaml
- web.archive.org/web/20200227233559/http://www.securityfocus.com/bid/92315
- nvd.nist.gov/vuln/detail/CVE-2016-6581
- cve.org/CVERecord?id=CVE-2016-6581
More vulnerabilities in Python products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.