Skip to main content

CVE-2026-59980: CWE-400: Uncontrolled Resource Consumption in python-hyper hpack

0
Medium
VulnerabilityCVE-2026-59980cvecve-2026-59980cwe-400
Published: 09/23/2026 (09/23/2026, 22:07:35 UTC)
Source: CVE Database V5
Vendor/Project: python-hyper
Product: hpack

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.

CVSS v4.0

Score 6.3medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

python-hyper

hpack

Affected versions
<4.2.0
hpack
pkg:pypi/hpack
Affected versions
<4.2.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/23/2026, 22:47:56 UTC

Technical Analysis

The python-hyper hpack library versions before 4.2.0 contain a CWE-400 uncontrolled resource consumption vulnerability. Specifically, the unbounded variable integer decoding can lead to O(n^2) runtime complexity on malformed input, causing run-away computation and denial of service. The vulnerability is addressed in version 4.2.0 by limiting variable integer decoding to 32-bit unsigned integers. Input sanitization to prevent long sequences of 0xFF bytes can serve as a temporary mitigation.

Potential Impact

An attacker can supply specially crafted malformed input to the hpack decoder causing excessive CPU consumption due to quadratic runtime complexity. This can lead to denial of service by blocking further processing in applications using vulnerable versions of the hpack library. There is no indication of privilege escalation or data compromise from this vulnerability.

Mitigation Recommendations

A fix is available in python-hyper/hpack version 4.2.0 which restricts variable integer decoding to uint32, preventing run-away computation. Users should upgrade to version 4.2.0 or later. As a temporary workaround, sanitize inputs to the hpack decoder to prevent long sequences of 0xFF bytes that could trigger the vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-07-07T19:41:00.004Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6ab453a8f7a7c541066aa604

Added to database: 09/23/2026, 22:33:12 UTC

Last enriched: 09/23/2026, 22:47:56 UTC

Last updated: 09/24/2026, 02:07:27 UTC

Views: 9

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses