# CVE-2026-59980: hpack: Unbounded variable integer decoding can cause run-away computation on malformed input

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-09-23T22:07:35.095Z
- Modified: 2026-10-01T17:55:38.238Z
- Also known as: GHSA-8v8h-hg4w-mvq2, PYSEC-2026-4053
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-hyper hpack: < 4.2.0
- hpack (PyPI): before 4.2.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N`

## References

- <https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2> (web)
- <https://github.com/python-hyper/hpack/commit/8cfb02c547740e16dbfe7aba77bad84b297cec2c> (web)
- <https://cs.opensource.google/go/x/net/+/master:http2/hpack/hpack.go;l=468;drc=8e2b117aee74f6b86c207a808b0255de45c0a18a> (web)
- <https://docs.rs/http2/0.5.19/src/http2/hpack/decoder.rs.html#403> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-59980> (advisory)
- <https://github.com/python-hyper/hpack> (package)
- <https://github.com/python-hyper/hpack/releases/tag/v4.2.0> (web)
- <https://pypi.org/project/hpack> (package)
- <https://github.com/advisories/GHSA-8v8h-hg4w-mvq2> (advisory)

## Sources

- CVE List: [CVE-2026-59980](https://www.cve.org/CVERecord?id=CVE-2026-59980), CVE Terms of Use, modified 2026-09-24
- GitHub Advisory Database: [GHSA-8v8h-hg4w-mvq2](https://github.com/advisories/GHSA-8v8h-hg4w-mvq2), CC-BY-4.0, modified 2026-10-01
- NVD: [CVE-2026-59980](https://nvd.nist.gov/vuln/detail/CVE-2026-59980), Public domain, modified 2026-09-30
- PyPA Advisory Database: [PYSEC-2026-4053](https://osv.dev/vulnerability/PYSEC-2026-4053), CC-BY-4.0, modified 2026-10-01

---

Page: https://cve.day/CVE-2026-59980 · Whole record: https://cve.day/CVE-2026-59980.json · Rebuilt by cve.day 2026-11-25T22:59:40.724Z
