{"id":"UBUNTU-CVE-2025-66471","details":"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.","modified":"2026-06-03T17:59:15.321228217Z","published":"2025-12-05T17:16:00Z","related":["USN-7927-1","USN-7927-2","USN-7927-3","USN-8344-1","USN-8344-2","USN-8344-3"],"upstream":["CVE-2025-66471"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-66471"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-66471"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2025/12/05/4"},{"type":"REPORT","url":"https://github.com/urllib3/urllib3/security/advisories/GHSA-2xpw-w6gg-jr37"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7927-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7927-2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7927-3"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8344-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8344-2"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-8344-3"}],"affected":[{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.1-2","1.5.4-1","1.5.4-1ubuntu1","1.5.4-1ubuntu3","1.5.4-1ubuntu4","1.5.4-1ubuntu4+esm1","1.5.4-1ubuntu4+esm2","1.5.4-1ubuntu4+esm3","1.5.4-1ubuntu4+esm4","1.5.4-1ubuntu4+esm5"],"ecosystem_specific":{"binaries":[{"binary_name":"python-pip","binary_version":"1.5.4-1ubuntu4+esm5"},{"binary_version":"1.5.4-1ubuntu4+esm5","binary_name":"python-pip-whl"},{"binary_name":"python3-pip","binary_version":"1.5.4-1ubuntu4+esm5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6-2","1.7.1-1","1.7.1-1build1","1.7.1-1ubuntu0.1","1.7.1-1ubuntu3","1.7.1-1ubuntu4","1.7.1-1ubuntu4.1","1.7.1-1ubuntu4.1+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.7.1-1ubuntu4.1+esm1","binary_name":"python-urllib3"},{"binary_name":"python-urllib3-whl","binary_version":"1.7.1-1ubuntu4.1+esm1"},{"binary_version":"1.7.1-1ubuntu4.1+esm1","binary_name":"python3-urllib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.11-1","1.12-1","1.13.1-1","1.13.1-2","1.13.1-2ubuntu0.16.04.1","1.13.1-2ubuntu0.16.04.2","1.13.1-2ubuntu0.16.04.3","1.13.1-2ubuntu0.16.04.4","1.13.1-2ubuntu0.16.04.4+esm1","1.13.1-2ubuntu0.16.04.4+esm2","1.13.1-2ubuntu0.16.04.4+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"1.13.1-2ubuntu0.16.04.4+esm3","binary_name":"python-urllib3"},{"binary_name":"python3-urllib3","binary_version":"1.13.1-2ubuntu0.16.04.4+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.5.6-7ubuntu1","1.5.6-7ubuntu2","8.0.2-7","8.0.3-1","8.0.3-2","8.1.0-1","8.1.0-2","8.1.1-1","8.1.1-2","8.1.1-2ubuntu0.1","8.1.1-2ubuntu0.2","8.1.1-2ubuntu0.4","8.1.1-2ubuntu0.6","8.1.1-2ubuntu0.6+esm2","8.1.1-2ubuntu0.6+esm3","8.1.1-2ubuntu0.6+esm4","8.1.1-2ubuntu0.6+esm5","8.1.1-2ubuntu0.6+esm6","8.1.1-2ubuntu0.6+esm8","8.1.1-2ubuntu0.6+esm10","8.1.1-2ubuntu0.6+esm11","8.1.1-2ubuntu0.6+esm12"],"ecosystem_specific":{"binaries":[{"binary_name":"python-pip","binary_version":"8.1.1-2ubuntu0.6+esm12"},{"binary_version":"8.1.1-2ubuntu0.6+esm12","binary_name":"python-pip-whl"},{"binary_name":"python3-pip","binary_version":"8.1.1-2ubuntu0.6+esm12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.21.1-1","1.22-1","1.22-1ubuntu0.18.04.1","1.22-1ubuntu0.18.04.2","1.22-1ubuntu0.18.04.2+esm1","1.22-1ubuntu0.18.04.2+esm2","1.22-1ubuntu0.18.04.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_name":"python-urllib3","binary_version":"1.22-1ubuntu0.18.04.2+esm3"},{"binary_name":"python3-urllib3","binary_version":"1.22-1ubuntu0.18.04.2+esm3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0.1-2","9.0.1-2.3~ubuntu1","9.0.1-2.3~ubuntu1.18.04.1","9.0.1-2.3~ubuntu1.18.04.2","9.0.1-2.3~ubuntu1.18.04.3","9.0.1-2.3~ubuntu1.18.04.4","9.0.1-2.3~ubuntu1.18.04.5","9.0.1-2.3~ubuntu1.18.04.5+esm2","9.0.1-2.3~ubuntu1.18.04.5+esm3","9.0.1-2.3~ubuntu1.18.04.6","9.0.1-2.3~ubuntu1.18.04.6+esm1","9.0.1-2.3~ubuntu1.18.04.7","9.0.1-2.3~ubuntu1.18.04.7+esm1","9.0.1-2.3~ubuntu1.18.04.8","9.0.1-2.3~ubuntu1.18.04.8+esm1","9.0.1-2.3~ubuntu1.18.04.8+esm2","9.0.1-2.3~ubuntu1.18.04.8+esm4","9.0.1-2.3~ubuntu1.18.04.8+esm6","9.0.1-2.3~ubuntu1.18.04.8+esm7","9.0.1-2.3~ubuntu1.18.04.8+esm8"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8","binary_name":"python-pip"},{"binary_name":"python-pip-whl","binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8"},{"binary_version":"9.0.1-2.3~ubuntu1.18.04.8+esm8","binary_name":"python3-pip"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.24.1-1ubuntu1","1.24.1-1ubuntu2","1.25.8-1","1.25.8-2","1.25.8-2ubuntu0.1","1.25.8-2ubuntu0.2","1.25.8-2ubuntu0.3","1.25.8-2ubuntu0.4","1.25.8-2ubuntu0.4+esm1","1.25.8-2ubuntu0.4+esm2","1.25.8-2ubuntu0.4+esm3","1.25.8-2ubuntu0.4+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-urllib3","binary_version":"1.25.8-2ubuntu0.4+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["18.1-5","18.1-5build1","18.1-5ubuntu1","20.0.2-2","20.0.2-4","20.0.2-5","20.0.2-5ubuntu1","20.0.2-5ubuntu1.1","20.0.2-5ubuntu1.3","20.0.2-5ubuntu1.4","20.0.2-5ubuntu1.5","20.0.2-5ubuntu1.6","20.0.2-5ubuntu1.7","20.0.2-5ubuntu1.8","20.0.2-5ubuntu1.9","20.0.2-5ubuntu1.10","20.0.2-5ubuntu1.10+esm2","20.0.2-5ubuntu1.11","20.0.2-5ubuntu1.11+esm2","20.0.2-5ubuntu1.11+esm3","20.0.2-5ubuntu1.11+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"python-pip-whl","binary_version":"20.0.2-5ubuntu1.11+esm4"},{"binary_name":"python3-pip","binary_version":"20.0.2-5ubuntu1.11+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.26.5-1~exp1","1.26.5-1~exp1ubuntu0.1","1.26.5-1~exp1ubuntu0.2","1.26.5-1~exp1ubuntu0.3","1.26.5-1~exp1ubuntu0.4","1.26.5-1~exp1ubuntu0.5","1.26.5-1~exp1ubuntu0.6","1.26.5-1~exp1ubuntu0.7"],"ecosystem_specific":{"binaries":[{"binary_version":"1.26.5-1~exp1ubuntu0.7","binary_name":"python3-urllib3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Fjammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"22.0.2+dfsg-1ubuntu0.7+esm3"}]}],"versions":["20.3.4-4","21.3.1+dfsg-3","22.0.2+dfsg-1","22.0.2+dfsg-1ubuntu0.1","22.0.2+dfsg-1ubuntu0.2","22.0.2+dfsg-1ubuntu0.3","22.0.2+dfsg-1ubuntu0.4","22.0.2+dfsg-1ubuntu0.5","22.0.2+dfsg-1ubuntu0.6","22.0.2+dfsg-1ubuntu0.7","22.0.2+dfsg-1ubuntu0.7+esm1","22.0.2+dfsg-1ubuntu0.7+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pip","binary_version":"22.0.2+dfsg-1ubuntu0.7+esm3"},{"binary_name":"python3-pip-whl","binary_version":"22.0.2+dfsg-1ubuntu0.7+esm3"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.7-1ubuntu0.3"}]}],"versions":["1.26.16-1","1.26.18-1","2.0.7-1","2.0.7-1ubuntu0.1","2.0.7-1ubuntu0.2"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-urllib3","binary_version":"2.0.7-1ubuntu0.3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:24.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Fnoble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"24.0+dfsg-1ubuntu1.3+esm3"}]}],"versions":["23.2+dfsg-1","23.3+dfsg-1","24.0+dfsg-1","24.0+dfsg-1ubuntu1","24.0+dfsg-1ubuntu1.1","24.0+dfsg-1ubuntu1.2","24.0+dfsg-1ubuntu1.3","24.0+dfsg-1ubuntu1.3+esm1","24.0+dfsg-1ubuntu1.3+esm2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pip","binary_version":"24.0+dfsg-1ubuntu1.3+esm3"},{"binary_version":"24.0+dfsg-1ubuntu1.3+esm3","binary_name":"python3-pip-whl"}],"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.0+dfsg-1","25.1.1+dfsg-1","25.1.1+dfsg-1ubuntu1","25.1.1+dfsg-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-pip","binary_version":"25.1.1+dfsg-1ubuntu2"},{"binary_version":"25.1.1+dfsg-1ubuntu2","binary_name":"python3-pip-whl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.0-3ubuntu0.1"}]}],"versions":["2.3.0-2","2.3.0-2ubuntu1","2.3.0-3"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"python3-urllib3","binary_version":"2.3.0-3ubuntu0.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-urllib3","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/python-urllib3?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.0-1ubuntu1"}]}],"versions":["2.3.0-3","2.5.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.0-1ubuntu1","binary_name":"python3-urllib3"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}},{"package":{"name":"python-pip","ecosystem":"Ubuntu:Pro:26.04:LTS","purl":"pkg:deb/ubuntu/python-pip?arch=source&distro=esm-apps%2Fresolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"25.1.1+dfsg-1ubuntu2+esm3"}]}],"versions":["25.1.1+dfsg-1ubuntu2","25.1.1+dfsg-1ubuntu2+esm1","25.1.1+dfsg-1ubuntu2+esm2"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro: https://ubuntu.com/pro","binaries":[{"binary_version":"25.1.1+dfsg-1ubuntu2+esm3","binary_name":"python3-pip"},{"binary_version":"25.1.1+dfsg-1ubuntu2+esm3","binary_name":"python3-pip-whl"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-66471.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}