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.
Published: 2026-08-25
Score: 2.1 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

No advisories yet.

History

Tue, 25 Aug 2026 15:15:00 +0000

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'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published:

Updated: 2026-08-25T15:07:58.054Z

Reserved: 2026-07-09T17:39:12.652Z

Link: CVE-2026-15310

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-25T15:16:30.027

Modified: 2026-08-25T15:16:30.027

Link: CVE-2026-15310

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-25T16:30:06Z

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption