CVE-2025-66471 urllib3 Streaming API improperly handles highly compressed data
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.
| Package | Affected | Fixed in |
|---|---|---|
urllib3 PyPI | From 1.0 | 2.6.0 |
urllib3 PyPI | From 1.0 | 2.6.0 |
urllib3 PyPI | From 1.0 | 2.6.0 |
Linux distribution packages (34)
python-s3transfer Red Hat:enterprise_linux:7::server | All versions | 0:0.1.13-1.el7_9.5 |
resource-agents Red Hat:enterprise_linux:7::server | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-aliyun Red Hat:enterprise_linux:7::server | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-gcp Red Hat:enterprise_linux:7::server | All versions | 0:4.1.1-61.el7_9.22 |
python-urllib3 Red Hat:rhel_els:6 | All versions | 0:1.10.2-3.el6_10.1 |
python-urllib3 Red Hat:rhel_els:7 | All versions | 0:1.10.2-7.el7_9.1 |
resource-agents Red Hat:rhel_extras_sap_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-debuginfo Red Hat:rhel_extras_sap_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-sap Red Hat:rhel_extras_sap_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
sap-cluster-connector Red Hat:rhel_extras_sap_els:7 | All versions | 0:3.0.1-37.el7_9.22 |
resource-agents Red Hat:rhel_extras_sap_hana_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-debuginfo Red Hat:rhel_extras_sap_hana_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-sap-hana Red Hat:rhel_extras_sap_hana_els:7 | All versions | 0:4.1.1-61.el7_9.22 |
resource-agents-sap-hana-scaleout Red Hat:rhel_extras_sap_hana_els:7 | All versions | 0:0.164.0-6.el7_9.22 |
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.2 | All versions | 1.25.10-150300.4.24.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.3 | All versions | 1.25.10-150300.4.24.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.3 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.4 | All versions | 1.25.10-150300.4.24.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.4 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.5 | All versions | 1.25.10-150300.4.24.1 |
python-urllib3 SUSE:Linux Enterprise Micro 5.5 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 1.25.10-150300.4.24.1 |
python-urllib3 SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 1.25.10-150300.4.30.1 |
python-urllib3 SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | All versions | 1.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.
Other vulnerabilities in urllib3
- CVE-2026-97689 urllib3: HTTPResponse.stream()/read_chunked() buffers an unbounded chunk-size line into memory
- CVE-2026-44432 urllib3: Decompression-bomb safeguards bypassed in parts of the streaming API
- CVE-2026-21441 urllib3 vulnerable to decompression-bomb safeguard bypass when following HTTP redirects (streaming API)
- CVE-2025-66418 urllib3 allows an unbounded number of links in the decompression chain
- CVE-2026-44431 urllib3: Sensitive headers forwarded across origins in proxied low-level redirects
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.