Advisory

GHSA-ffq8-576r-v26g

Also known as: CVE-2016-6581, PYSEC-2017-87

Summary

HPACK Denial of Service vulnerability (HPACK Bomb)

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2019-07-05 21:11 UTC
Modified
2024-11-30 05:39 UTC

Affected packages and fixes

hpack

PyPI · All systems

Affected

  • introduced 1.0.0, fixed 2.3.0 (ecosystem)

Fixed versions

2.3.0

Fix

  • Fixed version 2.3.0
    pip install --upgrade hpack==2.3.0

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences