CVE-2026-142230

high

Description

Pydantic httpx2 through 2.17.0 contains an unbounded memory allocation vulnerability in LineDecoder that allows malicious servers to exhaust client memory by sending decompressed bodies without newlines. Attackers can return highly compressed gzip, deflate, brotli or zstd responses that inflate roughly 1000 to 1, terminating clients reading via iter_lines() or aiter_lines().

References

https://www.vulncheck.com/advisories/httpx2-through-2.17.0-memory-exhaustion-via-iter-lines-and-aiter-lines

https://github.com/pydantic/httpx2/blob/v2.17.0/src/httpx2/httpx2/_models.py#L934-L941

https://github.com/pydantic/httpx2/blob/v2.17.0/src/httpx2/httpx2/_decoders.py#L387-L435

https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-141600

Details

Source: Mitre, NVD

Published: 2026-12-02

Updated: 2026-12-05

Risk Information

CVSS v2

Base Score: 5

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

Severity: Medium

CVSS v3

Base Score: 5.9

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Severity: Medium

CVSS v4

Base Score: 8.2

Vector: CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Severity: High

EPSS

EPSS: 0.00693