CVE-2025-66418
ADVISORY - githubSummary
Impact
urllib3 supports chained HTTP encoding algorithms for response content according to RFC 9110 (e.g., Content-Encoding: gzip, zstd).
However, the number of links in the decompression chain was unbounded allowing a malicious server to insert a virtually unlimited number of compression steps leading to high CPU usage and massive memory allocation for the decompressed data.
Affected usages
Applications and libraries using urllib3 version 2.5.0 and earlier for HTTP requests to untrusted sources unless they disable content decoding explicitly.
Remediation
Upgrade to at least urllib3 v2.6.0 in which the library limits the number of links to 5.
If upgrading is not immediately possible, use preload_content=False and ensure that resp.headers["content-encoding"] contains a safe number of encodings before reading the response content.
Common Weakness Enumeration (CWE)
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling
Allocation of Resources Without Limits or Throttling
NIST
3.9
CVSS SCORE
8.9highGitHub
-
CVSS SCORE
8.9highDebian
-
Ubuntu
3.9
CVSS SCORE
7.5mediumAmazon
-
CVSS SCORE
N/AmediumRed Hat
3.9
CVSS SCORE
7.5highChainguard
CGA-23fx-4vmh-cm8j
-
Chainguard
CGA-28h2-v62f-9558
-
Chainguard
CGA-2vfc-7392-8597
-
Chainguard
CGA-32cc-7wh3-48m8
-
Chainguard
CGA-44gw-7hgm-9hmj
-
Chainguard
CGA-4p44-29mm-47g9
-
Chainguard
CGA-5rv5-grgj-pwwc
-
Chainguard
CGA-6jg9-cgr2-8j65
-
Chainguard
CGA-6q42-3hjm-j46r
-
Chainguard
CGA-6r42-x94q-68w3
-
Chainguard
CGA-73v2-frpr-6cm7
-
Chainguard
CGA-8g68-52q3-g3j2
-
Chainguard
CGA-g3x3-hj9r-gmqr
-
Chainguard
CGA-h5hw-wfww-6f8h
-
Chainguard
CGA-jpwv-87r9-hgm6
-
Chainguard
CGA-p58r-fqwm-vfq4
-
Chainguard
CGA-phv4-9467-h3g4
-
Chainguard
CGA-qcpr-8xm5-jrgw
-
Chainguard
CGA-r5ph-cr34-78mp
-
Chainguard
CGA-rcmx-fv9w-4c28
-
Chainguard
CGA-vqfh-frf6-9crh
-
Chainguard
CGA-vx33-8fv6-fpfg
-
Chainguard
CGA-w59h-375r-3v44
-
Chainguard
CGA-xx74-9j94-h268
-
minimos
MINI-2j5j-mx6v-5v36
-
minimos
MINI-7fh3-8hwm-xq38
-
minimos
MINI-86rf-527g-vj73
-
minimos
MINI-cw83-g2m8-hqfv
-
minimos
MINI-fcqc-vwm2-6257
-
minimos
MINI-m2f3-vrqw-wh79
-
minimos
MINI-qqqr-7wqv-2qf5
-
minimos
MINI-vq9w-8629-wf7g
-