ADVISORIES

CVE Program

CNA-CVE-2026-15310

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

Details

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

EcosystemPackageAffected versions
Pythonpython
All versions before 3.10.22 (fixed in 3.10.22)
From 3.11.0 before 3.11.17 (fixed in 3.11.17)
From 3.12.0 before 3.12.15 (fixed in 3.12.15)
From 3.13.0 before 3.13.16 (fixed in 3.13.16)
From 3.14.0 before 3.14.8 (fixed in 3.14.8)
From 3.15.0a1 before 3.15.0rc2 (fixed in 3.15.0rc2)

References