---
schema_version: '1.0'
id: security-20260925-b17556
title: 'CVE-2026-59980: hpack: Unbounded variable integer decoding can cause run-away
  computation on malformed input'
url: https://osv.dev/vulnerability/GHSA-8v8h-hg4w-mvq2
url_hash: b1755657633fd52b4de0faa517abc1fcbdaadf26c5c7c247aad08ea9c70e6183
canonical_url: https://osv.dev/vulnerability/GHSA-8v8h-hg4w-mvq2
source: osv:ghsa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59980
- GHSA-8v8h-hg4w-mvq2
- severity: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
- hpack
- PyPI
lang: en
published_at: '2026-09-24T19:43:26Z'
fetched_at: '2026-09-25T06:33:49.669096Z'
updated_at: '2026-09-29T03:52:06.623931Z'
status: published
content_hash: ba231adeb30ce15df5272fd316443f6ed0a076efda23824c21caf347e8dc64c1
content_changed_at: null
license_note: full
summary: 'hpack: Unbounded variable integer decoding can cause run-away computation
  on malformed input'
summary_source: rss
summary_en: 'hpack: Unbounded variable integer decoding can cause run-away computation
  on malformed input'
summary_omitted_reason: null
redistribution: true
keywords_en:
- can
- cause
- computation
- cve
- CVE-2026-52870
- CVE-2026-59980
- decoding
- GHSA-8v8h-hg4w-mvq2
- hpack
- input
- integer
- library vulnerability
- malformed
- PyPI
- run-away
- severity: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
- software security
- Unbounded
- variable
entities_en:
- name: CVE-2026-52870
  type: event
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-52870
  type: event
key_facts: []
related: []
related_auto:
- name: mcp
  type: artifact
  weight: 1.0
- name: Discord Session
  type: event
  weight: 1.0
computed_at: '2026-09-25T06:37:49Z'
---

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

## TL;DR
hpack: Unbounded variable integer decoding can cause run-away computation on malformed input

## Key Points
- cve / CVE-2026-59980 / GHSA-8v8h-hg4w-mvq2 / severity: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 / hpack / PyPI

## Details
**Severity:** 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
**Advisory:** GHSA-8v8h-hg4w-mvq2 (CVE-2026-59980)

**Details:**
### Impact

Users of the python-hyper/hpack library, most commonly used as downstream dependency of the python-hyper/h2 library (an HTTP/2 client and server implementation). 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.

### Patches
A fix is available in python-hyper/hpack v4.2.0 to restricted variable integer decoding to uint32 to prevent run-away computation.

### Workarounds
Sanitize input to hpack decoder for long sequences of `0xFF` values to prevent malicious use.

**References:**
- https://github.com/python-hyper/hpack/security/advisories/GHSA-8v8h-hg4w-mvq2
- https://nvd.nist.gov/vuln/detail/CVE-2026-59980
- 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
- https://github.com/python-hyper/hpack
- https://github.com/python-hyper/hpack/releases/tag/v4.2.0

_Data: OSV.dev (upstream: ghsa) — https://osv.dev/vulnerability/GHSA-8v8h-hg4w-mvq2_

## Source
元記事: [CVE-2026-59980: hpack: Unbounded variable integer decoding can cause run-away computation on malformed input](https://osv.dev/vulnerability/GHSA-8v8h-hg4w-mvq2) — published 2026-09-24T19:43:26Z
