CVE-2026-84382

HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification)

Published Sep 2, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
HTTPX2 is a next generation HTTP client for Python. Prior to 2.12.0, the HTTPX2 content decoders in src/httpx2/httpx2/_decoders.py fully inflate each gzip, deflate, br, or zstd network chunk before iter_bytes() or aiter_bytes() yields bounded pieces to the application. A 64 KiB compressed chunk can expand to approximately 64 MiB in one intermediate allocation, so an attacker-controlled or compromised server can cause severe memory pressure or out-of-memory process termination even when the application streams the response. This issue is fixed in version 2.12.0.

Analysis

AI-generated

Technical impact

HTTPX2, a Python HTTP client library, mistakenly inflates each gzip, deflate, brotli, or zstd compressed network chunk before providing pieces to the application. A small 64 KiB compressed chunk can expand to roughly 64 MiB in a single allocation, leading to severe memory pressure or out‑of‑memory termination even when the application streams responses. The weakness is a classic decompression amplification flaw, classified as CWE‑409, which can allow an attacker who can serve crafted compressed data to trigger denial of service on any Python program using the affected library.

Affected Systems

All installations of httpx2 older than version 2.12.0 are affected. Any Python project that imports httpx2 and receives responses from external servers may be impacted if it uses the default decompression handlers provided in the library.

Risk and Exploitability

The CVSS score of 7.5 reflects the high impact of resource exhaustion. EPSS information is unavailable, so the current likelihood of exploitation cannot be quantified; the vulnerability is not listed in the CISA KEV catalog. The attack vector is inferred to be remote because the encrypted data originates from an external HTTP server or an attacker‑controlled network source. An attacker can send a compressed payload that triggers excessive memory allocation in the client, draining memory and potentially crashing the process.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the httpx2 package to version 2.12.0 or later to obtain the patched decompression logic.
  • Configure the client to disable compressed responses, for example by removing or overriding the Accept‑Encoding header to identity, to avoid decompression of attacker‑controlled data.
  • Implement application‑level resource limits or monitoring to detect sudden memory spikes and restart or terminate a compromised process to prevent sustained denial of service.

Generated by OpenCVE AI on September 3, 2026 at 10:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-8xx6-hgc6-gc2m HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification)
History
Type Values Removed Values Added
First Time appeared Pydantic
Pydantic httpx2
Vendors & Products Pydantic
Pydantic httpx2
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description HTTPX2 is a next generation HTTP client for Python. Prior to 2.12.0, the HTTPX2 content decoders in src/httpx2/httpx2/_decoders.py fully inflate each gzip, deflate, br, or zstd network chunk before iter_bytes() or aiter_bytes() yields bounded pieces to the application. A 64 KiB compressed chunk can expand to approximately 64 MiB in one intermediate allocation, so an attacker-controlled or compromised server can cause severe memory pressure or out-of-memory process termination even when the application streams the response. This issue is fixed in version 2.12.0.
Title HTTPX2: Streaming response decompression does not bound peak memory (decompression amplification)
Weaknesses CWE-409
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 3, 2026, 2:31 PM
Reserved
Sep 1, 2026, 4:27 PM
Status
Awaiting Analysis
Published
Sep 2, 2026, 7:18 PM
Modified
Sep 9, 2026, 9:05 PM
Severity
Important
Public date
Sep 2, 2026, 6:03 PM