Cloudanix VulnDB

CVE-2026-15310

None

CVSS

—

EPSS

0.5%

Published

Aug 25, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in Python lets attackers crash programs that open certain compressed files by forcing them to use up all available memory.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Library
Class
Denial of service
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

During decompression of ZIP archives using bzip2, LZMA, or Zstandard, Python uses an attacker-supplied size value to pre-allocate memory buffers without sufficient bounds checking, allowing exhaustion of available RAM.

Why it matters to the business

Services that accept or process untrusted compressed archives may become unresponsive or crash, interrupting file-handling workflows and requiring restarts or manual intervention.

How an attack unfolds

An attacker creates a ZIP file whose bzip/LZMA/Zstandard header declares an extremely large uncompressed size, then delivers the archive to any Python application that calls the zipfile module or equivalent decompression routines; the interpreter allocates the requested memory and the process terminates or hangs when RAM is depleted.

How to fix it

Upgrade Python to a version containing the corrected decompression logic once released; enforce strict memory limits and timeouts around archive processing; reject or sanitize archives whose declared sizes exceed reasonable thresholds.

How to confirm the fix worked

Test decompression of crafted large-allocation ZIP files under memory-constrained conditions before and after applying updates; verify that Python processes no longer allocate unbounded buffers for untrusted archives.

Typical attack path

  1. Craft a ZIP archive containing a bzip/LZMA/Zstandard member whose header specifies an oversized allocation
  2. Transmit the archive to the target via upload, email attachment, or automated download
  3. Trigger decompression through normal application logic that invokes Python's zipfile or tarfile handling
  4. Observe rapid memory growth leading to OOM termination or service denial

How to detect it

Review application and system logs for Python processes terminating with memory-allocation or out-of-memory errors immediately after ZIP or archive handling; correlate spikes in resident memory usage with file-upload or decompression events.

What your security team should do

  • Monitor upstream Python releases and apply patches as soon as they become available
  • Add resource quotas and size validation to any code paths that decompress untrusted ZIP files
  • Consider sandboxing or external tools for high-risk archive processing until a fix is deployed

The record

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

Ecosystem Package Introduced Fixed

Related vulnerabilities