BIT-python-min-2026-15310: zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits
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 Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications that decompress attacker-controlled ZIP files using bzip2, LZMA, or Zstandard-compressed members are exposed to potential memory exhaustion. The available data does not identify affected Python versions or configuration-specific scope.
What does an attacker need to exploit it?
An attacker needs to provide a crafted ZIP file containing members compressed with bzip2, LZMA, or Zstandard and induce the application to decompress it. User interaction is required according to the supplied vector.
What is the impact of successful exploitation?
A crafted member can cause Python to pre-allocate attacker-controlled memory, potentially exhausting available memory. The supplied severity vector indicates availability impact only, with no stated confidentiality or integrity impact.