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

Published Aug 25, 2026
·
Updated

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

1 affected component
Python Software Foundation Python

Event History

Aug 25, 2026
CVE Published
via OSV·03:07 PM
Data Sourced
via OSV·03:07 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that decompress attacker-controlled ZIP archives using Python and ZIP members compressed with bzip2, LZMA, or Zstandard are exposed. The impact described is memory exhaustion through attacker-controlled allocation sizes.

2

What must an attacker do to exploit it?

An attacker needs to provide a crafted ZIP file and induce the application to decompress it. The vector is network-accessible, but user interaction is required according to the supplied severity vector.

3

Does reading ZIP content in chunks prevent the issue?

No. The issue specifically affects these compression methods because decompression occurs without a max_length bound, defeating chunked-read memory limits.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203