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.
Published: 2026-09-02
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Thu, 03 Sep 2026 16:00:00 +0000

Type Values Removed Values Added
First Time appeared Pydantic
Pydantic httpx2
Vendors & Products Pydantic
Pydantic httpx2

Thu, 03 Sep 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 03 Sep 2026 12:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Important


Wed, 02 Sep 2026 18:30:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-03T14:31:19.366Z

Reserved: 2026-09-01T16:27:58.130Z

Link: CVE-2026-84382

cve-icon Vulnrichment

Updated: 2026-09-03T14:09:08.128Z

cve-icon NVD

Status : Received

Published: 2026-09-02T19:18:08.353

Modified: 2026-09-03T15:17:35.513

Link: CVE-2026-84382

cve-icon Redhat

Severity : Important

Publid Date: 2026-09-02T18:03:05Z

Links: CVE-2026-84382 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-09-03T15:33:54Z

Weaknesses
  • CWE-409

    Improper Handling of Highly Compressed Data (Data Amplification)