---
schema_version: '1.0'
id: security-20261002-8a61be
title: 'CVE-2026-59980: hpack: Unbounded variable integer decoding can cause run-away
  computation on malformed input'
url: https://osv.dev/vulnerability/PYSEC-2026-4053
url_hash: 8a61be05a6b83105cf19a9f5ba00431f1d843b070880b8d673e26dc23b007fe6
canonical_url: https://osv.dev/vulnerability/PYSEC-2026-4053
source: osv:pypa
category: security/library
category_raw: cve/library
region: null
tags:
- cve
- CVE-2026-59980
- PYSEC-2026-4053
- 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-10-01T16:38:39Z'
fetched_at: '2026-10-02T04:02:59.619904Z'
updated_at: '2026-10-02T05:03:43Z'
status: published
content_hash: 53900af84574da6b6995d3bcd6442090dc9212ad3da6174597e40570134759fa
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-59980
- CVE-2026-87817
- decoding
- hpack
- input
- Integer
- library vulnerability
- malformed
- PyPI
- PYSEC-2026-4053
- python-hyper/hpack
- 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-87817
  type: event
- name: Integer
  type: UNKNOWN
- name: python-hyper/hpack
  type: artifact
topics_en:
- library vulnerability
- software security
numeric_facts: []
entities:
- name: CVE-2026-87817
  type: event
- name: python-hyper/hpack
  type: artifact
- name: Integer
  type: UNKNOWN
key_facts: []
related: []
related_auto:
- name: Python製ツール
  type: artifact
  weight: 7.9
- name: GitPython
  type: concept
  weight: 1.0
- name: hooks/pre-commit
  type: artifact
  weight: 1.0
- name: GitHub Security Advisory
  type: content
  weight: 1.0
- name: Company
  type: UNKNOWN
  weight: 1.0
computed_at: '2026-10-02T05:03:42Z'
---

# 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 / PYSEC-2026-4053 / 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:** PYSEC-2026-4053 (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
- https://pypi.org/project/hpack
- https://github.com/advisories/GHSA-8v8h-hg4w-mvq2

_Data: OSV.dev (upstream: pypa) — https://osv.dev/vulnerability/PYSEC-2026-4053_

## Source
元記事: [CVE-2026-59980: hpack: Unbounded variable integer decoding can cause run-away computation on malformed input](https://osv.dev/vulnerability/PYSEC-2026-4053) — published 2026-10-01T16:38:39Z
