Bug 2590879 (CVE-2026-142020)

Summary: CVE-2026-142020 httpx2: httpx2: Denial of Service via unbounded line buffering during response streaming
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: alinfoot, anpicker, ansingla, bbrownin, blitton, dfreiber, dkeler, drow, dtrifiro, dymurray, ebourniv, gbenhaim, hasun, jburrell, jdobes, jfula, jmitchel, jowilson, kaycoth, kgaikwad, mhayden, mwoodson, niyer, nyancey, ometelka, orabin, prwatson, ptisnovs, sbunciak, sdoran, suppawar, syedriko, tguha, thason, twaugh, vkumar, weaton, xdharmai
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in httpx2. A remote server can cause a Denial of Service (DoS) by sending compressed response data without line breaks to a client application using line-based streaming methods. Because the client buffers response text in memory until a line separator is encountered, processing such un-delimited payloads leads to excessive memory consumption and can crash the application.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-04 12:05:41 UTC
Response.iter_lines() and Response.aiter_lines() in httpx2 buffered decoded text without any limit on the length of a line. A server can return a small compressed body that decompresses to a large payload with no line separators, making the client hold the whole decompressed payload in memory before yielding a line. A body of about 65 KiB that decompresses to 64 MiB raises peak memory to about 134 MiB, and memory grows linearly with the decompressed size. The per-chunk decompression limit added for CVE-2026-84382 does not bound this buffer.

Applications are affected when they stream responses from an untrusted origin with iter_lines() or aiter_lines(), such as NDJSON consumers, log tailers or feed fetchers, using httpx2 before 2.18.0.

The issue is fixed in 2.18.0, which limits a buffered line to 1,048,576 characters by default and raises DecodingError beyond it; max_line_length adjusts or disables the limit. Until then, stream untrusted responses with iter_bytes() or aiter_bytes() and enforce a size limit, or request Accept-Encoding: identity.