CVE-2026-15310

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

Published Aug 25, 2026 CVSS 4.0 · 2.1 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The vulnerability allows attackers to craft zip files that contain bzip2, LZMA, or Zstandard compressed members. When a vulnerable Python interpreter decompresses such a file, it allocates memory based on the attacker‑controlled compressed size without enforcing the maximum length bound that normally limits the amount of data that can be read at a time. This can lead to excessive memory allocation and eventual exhaustion, potentially causing crashes or a denial of service.

Affected Systems

The issue targets the CPython interpreter maintained by the Python Software Foundation. All versions of CPython that have not applied the mitigation present in the referenced pull request and issue may be vulnerable; the specific affected releases are not enumerated in the data provided.

Risk and Exploitability

The CVSS score is 2.1, indicating a low severity per the base metric. The EPSS score is unavailable, so the likelihood of exploitation is unclear. The vulnerability is not listed in the CISA KEV catalog and there are no known public exploits. The likely attack vector is the processing of a maliciously crafted zip file from an untrusted source; exploitation requires local or remote execution of Python’s zipfile module with such a file.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade CPython to a version that incorporates the fix from https://github.com/python/cpython/pull/156003
  • If an immediate upgrade is not possible, move untrusted zip file processing to a sandboxed environment with strict memory limits
  • Consider disabling or rejecting zip files that use bzip2, LZMA, or Zstandard compression until a patch is applied
  • Monitor memory usage of applications that handle zip files for sudden spikes indicative of exploitation

Generated by OpenCVE AI on August 25, 2026 at 16:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4827-1 python3.11 security update
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Python
Python cpython
Vendors & Products Python
Python cpython
Type Values Removed Values Added
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.
Title zipfile: bzip2/LZMA/Zstandard members decompress without a max_length bound, defeating chunked-read memory limits
Weaknesses CWE-400
References
Metrics cvssV4_0

{'score': 2.1, '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'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
PSF
Published
Updated
Nov 10, 2026, 12:40 PM
Reserved
Jul 9, 2026, 5:39 PM
Status
Awaiting Analysis
Published
Aug 25, 2026, 3:16 PM
Modified
Nov 10, 2026, 1:18 PM