Skip to content
OpenAdvisories
High · 7.5 CVE-2016-6581 EUVD-2017-0059GHSA-ffq8-576r-v26gPYSEC-2017-87

HPACK Denial of Service vulnerability (HPACK Bomb)

Published Jan 10, 2017 · Updated Aug 6, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-hpack 2.3.0-1 —
Debian 13 python-hpack 2.3.0-1 —
Debian 12 python-hpack 2.3.0-1 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS python-hpack No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-hpack 4.0.0-2.7 openSUSE-SU-2026:11556-1, openSUSE-SU-2024:14140-1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI hpack >= 1.0.0, < 2.3.0 2.3.0 GHSA-ffq8-576r-v26g
PyPI hpack < 2.3.0 2.3.0 PYSEC-2017-87

Advisories 2

References