What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Python 3.10.22, 3.11.17, 3.12.15, 3.13.16. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-15310 or the next vulnerability affects your stack