CVE-2026-15310zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating…
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python3.14 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 26.04 | python3.14 | Under investigation | UBUNTU-CVE-2026-15310 | |
| Ubuntu 24.04 | python3.12 | Under investigation | UBUNTU-CVE-2026-15310 | |
| Ubuntu 22.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 22.04 | python3.10 | Under investigation | UBUNTU-CVE-2026-15310 | |
| Ubuntu 22.04 | python3.11 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 20.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 20.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 20.04 | python3.9 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 18.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 18.04 | python3.6 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 18.04 | python3.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 18.04 | python3.8 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 16.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 16.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 14.04 | python2.7 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 14.04 | python3.4 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Ubuntu 14.04 | python3.5 | Fix pending | UBUNTU-CVE-2026-15310 | |
| Debian 14 | python3.14 | Fixed | 3.14.7-3 | DEBIAN-CVE-2026-15310 |
| Debian 14 | python3.15 | Fixed | 3.15.0~rc2-1 | DEBIAN-CVE-2026-15310 |
| Debian 13 | python3.13 | Fix pending | DEBIAN-CVE-2026-15310 | |
| Debian 12 | python3.11 | Fixed | 3.11.2-6+deb12u9 | DEBIAN-CVE-2026-15310 |
| Alpine Linux 3.24 | python3 | Fixed | 3.14.8-r0 | ALPINE-CVE-2026-15310 |
| Alpine Linux 3.23 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
| Alpine Linux 3.22 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
| Alpine Linux 3.21 | python3 | Fixed | 3.12.15-r0 | ALPINE-CVE-2026-15310 |
What the vendor says
As published in the CVE record by PSF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Python Software Foundation CPython: affected: before 3.10.22, 3.11.0 to before 3.11.17, 3.12.0 to before 3.12.15, 3.13.0 to before 3.13.16, 3.14.0 to before 3.14.8, 3.15.0a1 to before 3.15.0rc2; fixed in
3.10.22,3.11.17,3.12.15,3.13.16,3.14.8,3.15.0rc2
Vendor advisories:
- https://github.com/python/cpython/pull/156003 (patch)
- https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA… (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)
References
- https://github.com/python/cpython/pull/156003
- https://github.com/python/cpython/issues/156002
- https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/
- https://github.com/python/cpython/commit/f897dbf2f36a5935700b7c2d94d4681d2136b7d4
- https://github.com/python/cpython/commit/1b424c0178a01e155fd0267dc28a8fc1159b33a8
- https://github.com/python/cpython/commit/31980e84b9a708424a0a1dfecde3fc991e313f89
- https://github.com/python/cpython/commit/e2311cfb3dd518f008f312fe0631f4f7490d237a
- https://github.com/python/cpython/commit/f507e6946a3194e83e1d7b8ee6e14567175e46de
- https://github.com/python/cpython/commit/9d167992b59cf5e23c66b9ed742b13f5925f7d70
- https://github.com/python/cpython/commit/dcdd406ddbfc4cb29b24c3df17cbabe21d316ce1
- https://github.com/python/cpython/commit/09a2e7e6678b4f65449e7ad8f112c48f944591e2
- https://github.com/python/cpython/commit/6257029de42ef89b67f3d20137de87d43e197530
- https://github.com/python/cpython/commit/c2bfbcdd1a11690507a10bc0998f95b8dc6b6fac
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.