CVE-2026-59980hpack: Unbounded variable integer decoding can cause run-away computation on malformed…
hpack is an HTTP/2 Header Encoding for Python. Prior to version 4.2.0, unbounded variable integer decoding can cause run-away computation on malformed input leading to O(n^2) runtime, effectively blocking further processing with large enough unsanitized input. A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation. As a workaround, sanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.
What to do
Fixed builds are available from PyPI: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-hpack | Fix pending | UBUNTU-CVE-2026-59980 | |
| Ubuntu 26.04 | python-hpack | Under investigation | UBUNTU-CVE-2026-59980 | |
| Ubuntu 24.04 | python-hpack | Under investigation | UBUNTU-CVE-2026-59980 | |
| Ubuntu 22.04 | python-hpack | Under investigation | UBUNTU-CVE-2026-59980 | |
| Ubuntu 20.04 | python-hpack | Fix pending | UBUNTU-CVE-2026-59980 | |
| Ubuntu 18.04 | python-hpack | Fix pending | UBUNTU-CVE-2026-59980 | |
| Ubuntu 16.04 | python-hpack | Fix pending | UBUNTU-CVE-2026-59980 | |
| Debian 14 | python-hpack | Fix pending | DEBIAN-CVE-2026-59980 | |
| Debian 13 | python-hpack | Fix pending | DEBIAN-CVE-2026-59980 | |
| Debian 12 | python-hpack | Fix pending | DEBIAN-CVE-2026-59980 | |
| PyPI library | hpack | Fixed | 4.2.0 | PYSEC-2026-4053 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- python-hyper hpack: affected: < 4.2.0
References
- https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2
- https://github.com/python-hyper/hpack/commit/8cfb02c547740e16dbfe7aba77bad84b297cec2c
- https://cs.opensource.google/go/x/net/+/master:http2/hpack/hpack.go;l=468;drc=8e2b117aee74f6b86c207a808b0255de45c0a18a
- https://docs.rs/http2/0.5.19/src/http2/hpack/decoder.rs.html#403
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.