Vulnerability · Published Aug 25, 2026 · Assigned by PSF
CVE-2026-15310zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits
Low 2.1
In plain English
A low-severity uncontrolled resource consumption in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 45% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 4.0)2.1Low
Exploit odds (30 days)0.5%top 55.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
When decompressing crafted zip files using the bzip/LZMA/Zstandard compressions, Python could use an attacker-controlled size to pre-allocate memory, possibly resulting in memory exhaustion.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
| Alpine:v3.22 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
| Alpine:v3.23 | python3 | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
| Alpine:v3.24 | python3 | 3.14.8-r0 | ALPINE-CVE-2026-15310 |
| Debian:12 | python3.11 | 3.11.2-6+deb12u9 | DEBIAN-CVE-2026-15310 |
| Debian:13 | python3.13 | no fix listed | DEBIAN-CVE-2026-15310 |
| Debian:14 | python3.14 | 3.14.7-3 | DEBIAN-CVE-2026-15310 |
| Debian:14 | python3.15 | 3.15.0~rc2-1 | DEBIAN-CVE-2026-15310 |
| Ubuntu:22.04:LTS | python3.10 | no fix listed | UBUNTU-CVE-2026-15310 |
| Ubuntu:24.04:LTS | python3.12 | no fix listed | UBUNTU-CVE-2026-15310 |
| Ubuntu:26.04:LTS | python3.14 | no fix listed | UBUNTU-CVE-2026-15310 |
| Ubuntu:26.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-15310 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.10.223.11.0 – before 3.11.173.12.0 – before 3.12.153.13.0 – before 3.13.163.14.0 – before 3.14.83.15.0a1 – before 3.15.0rc2 |
Weakness: CWE-400 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
References
- https://github.com/python/cpython/pull/156003 patch
- https://github.com/python/cpython/issues/156002 issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/ vendor-advisory
- https://github.com/python/cpython/commit/f897dbf2f36a5935700b7c2d94d4681d2136b7d4 patch
- https://github.com/python/cpython/commit/1b424c0178a01e155fd0267dc28a8fc1159b33a8 patch
- https://github.com/python/cpython/commit/31980e84b9a708424a0a1dfecde3fc991e313f89 patch
- https://github.com/python/cpython/commit/e2311cfb3dd518f008f312fe0631f4f7490d237a patch
- https://github.com/python/cpython/commit/f507e6946a3194e83e1d7b8ee6e14567175e46de patch
- https://github.com/python/cpython/commit/9d167992b59cf5e23c66b9ed742b13f5925f7d70 patch
- https://github.com/python/cpython/commit/dcdd406ddbfc4cb29b24c3df17cbabe21d316ce1 patch
- https://github.com/python/cpython/commit/09a2e7e6678b4f65449e7ad8f112c48f944591e2 patch
- https://github.com/python/cpython/commit/6257029de42ef89b67f3d20137de87d43e197530 patch
- https://github.com/python/cpython/commit/c2bfbcdd1a11690507a10bc0998f95b8dc6b6fac patch