CVE-2025-66471 urllib3 Streaming API improperly handles highly compressed data

High 8.9 Published Updated

Attackers can cause excessive CPU and memory consumption in urllib3 by sending highly compressed data, leading to denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2025-66471?

CVE-2025-66471 is a high-severity denial of service vulnerability in urllib3, published on 5 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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. urllib3's 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: CWE-409

Which versions are affected by CVE-2025-66471?

3 open source packages ship an affected version, including urllib3. It affects 1 product.

PackageAffectedFixed in
urllib3 PyPIFrom 1.02.6.0
urllib3 PyPIFrom 1.02.6.0
urllib3 PyPIFrom 1.02.6.0
Linux distribution packages (34)
python-s3transfer Red Hat:enterprise_linux:7::serverAll versions0:0.1.13-1.el7_9.5
resource-agents Red Hat:enterprise_linux:7::serverAll versions0:4.1.1-61.el7_9.22
resource-agents-aliyun Red Hat:enterprise_linux:7::serverAll versions0:4.1.1-61.el7_9.22
resource-agents-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:4.1.1-61.el7_9.22
resource-agents-gcp Red Hat:enterprise_linux:7::serverAll versions0:4.1.1-61.el7_9.22
python-urllib3 Red Hat:rhel_els:6All versions0:1.10.2-3.el6_10.1
python-urllib3 Red Hat:rhel_els:7All versions0:1.10.2-7.el7_9.1
resource-agents Red Hat:rhel_extras_sap_els:7All versions0:4.1.1-61.el7_9.22
resource-agents-debuginfo Red Hat:rhel_extras_sap_els:7All versions0:4.1.1-61.el7_9.22
resource-agents-sap Red Hat:rhel_extras_sap_els:7All versions0:4.1.1-61.el7_9.22
sap-cluster-connector Red Hat:rhel_extras_sap_els:7All versions0:3.0.1-37.el7_9.22
resource-agents Red Hat:rhel_extras_sap_hana_els:7All versions0:4.1.1-61.el7_9.22
resource-agents-debuginfo Red Hat:rhel_extras_sap_hana_els:7All versions0:4.1.1-61.el7_9.22
resource-agents-sap-hana Red Hat:rhel_extras_sap_hana_els:7All versions0:4.1.1-61.el7_9.22
resource-agents-sap-hana-scaleout Red Hat:rhel_extras_sap_hana_els:7All versions0:0.164.0-6.el7_9.22
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Micro 5.2All versions1.25.10-150300.4.24.1
python-urllib3 SUSE:Linux Enterprise Micro 5.3All versions1.25.10-150300.4.24.1
python-urllib3 SUSE:Linux Enterprise Micro 5.3All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Micro 5.4All versions1.25.10-150300.4.24.1
python-urllib3 SUSE:Linux Enterprise Micro 5.4All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Micro 5.5All versions1.25.10-150300.4.24.1
python-urllib3 SUSE:Linux Enterprise Micro 5.5All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions1.25.10-150300.4.24.1
python-urllib3 SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions1.25.10-150300.4.30.1
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP6All versions1.25.10-150300.4.30.1

Products include Python Urllib3.

How do I fix CVE-2025-66471?

Upgrade urllib3 to 2.6.0 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-66471 being exploited?

There is no known exploitation of CVE-2025-66471 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2025-66471, AZL-71837, AZL-71849, BELL-CVE-2025-66471, CLEANSTART-2026-JR23071, CLSA-2026-1770035896 and 37 more.

Is CVE-2025-66471 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free