CVE Vulnerabilities

CVE-2025-66471

Improper Handling of Highly Compressed Data (Data Amplification)

Published: Dec 05, 2025 | Modified: Dec 10, 2025
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS 2.x
RedHat/V2
RedHat/V3
Ubuntu
MEDIUM

urllib3 is a user-friendly HTTP client library for Python. Starting in version 1.0 and prior to 2.6.0, the Streaming API improperly handles highly compressed data. urllib3s streaming API is designed for the efficient handling of large HTTP responses by reading the content in chunks, rather than loading the entire response body into memory at once. When streaming a compressed response, urllib3 can perform decoding or decompression based on the HTTP Content-Encoding header (e.g., gzip, deflate, br, or zstd). The library must read compressed data from the network and decompress it until the requested chunk size is met. Any resulting decompressed data that exceeds the requested amount is held in an internal buffer for the next read operation. The decompression logic could cause urllib3 to fully decode a small amount of highly compressed data in a single operation. This can result in excessive resource consumption (high CPU usage and massive memory allocation for the decompressed data.

Weakness

The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output.

Affected Software

Name Vendor Start Version End Version
Urllib3 Python 1.0 (including) 2.6.0 (excluding)
Python-pip Ubuntu devel *
Python-pip Ubuntu esm-apps/bionic *
Python-pip Ubuntu esm-apps/focal *
Python-pip Ubuntu esm-apps/jammy *
Python-pip Ubuntu esm-apps/noble *
Python-pip Ubuntu esm-apps/xenial *
Python-pip Ubuntu esm-infra-legacy/trusty *
Python-pip Ubuntu jammy *
Python-pip Ubuntu noble *
Python-pip Ubuntu plucky *
Python-pip Ubuntu questing *
Python-urllib3 Ubuntu devel *
Python-urllib3 Ubuntu esm-infra-legacy/trusty *
Python-urllib3 Ubuntu esm-infra/bionic *
Python-urllib3 Ubuntu esm-infra/focal *
Python-urllib3 Ubuntu esm-infra/xenial *
Python-urllib3 Ubuntu jammy *
Python-urllib3 Ubuntu noble *
Python-urllib3 Ubuntu plucky *
Python-urllib3 Ubuntu questing *

References