Skip to main content

CPython zipfile CVE-2026-15310

| EUVDEUVD-2026-65519 LOW
Uncontrolled Resource Consumption (CWE-400)
2026-08-25 PSF GHSA-xj79-6hh5-9w6q
2.1
CVSS 4.0 · Vendor: PSF
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft zip with oversized declared member (bzip2/LZMA/Zstd)
  2. Delivery
    Deliver archive to target Python application
  3. Exploit
    Application opens archive via zipfile module
  4. Execution
    _read1() decompresses without max_length bound
  5. Persist
    Process memory exhausted
  6. Impact
    Denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that the target opens a crafted zip archive using Python's zipfile module, and that the archive contains at least one member compressed with bzip2 (ZIP_BZIP2), LZMA (ZIP_LZMA), or Zstandard (ZIP_ZSTANDARD) - the DEFLATE (ZIP_DEFLATED) and stored (ZIP_STORED) formats are NOT vulnerable, as they already enforced output bounds. User interaction is required per CVSS UI:A: a human or automated process must explicitly open and read from the archive. Applications that automatically ingest user-supplied or externally-sourced zip files satisfy this condition without direct human involvement. Exploitation is limited to memory exhaustion of the Python process - it does not enable code execution, privilege escalation, or data access. The severity is further constrained by system memory limits and any process-level resource caps in place.

Impact

The CVSS 4.0 score of 2.1 accurately reflects the constrained real-world impact: VA:L indicates only low availability loss, UI:A requires that someone or something opens the crafted archive, and AT:P signals a specific attack requirement is present. There is no confidentiality or integrity impact (VC:N/VI:N). The vulnerability is not listed in CISA KEV and no public exploit code exists, consistent with the low CVSS score. The practical exposure is highest in server-side applications that automatically extract untrusted zip uploads - upload handlers, CI artifact processors, or document pipelines - where the UI:A condition is satisfied programmatically rather than by a human. For interactive desktop use, social engineering is required. Overall this is a low-priority finding for most organizations: impact is bounded by available process memory and does not enable code execution or data exfiltration. EPSS data was not provided in the input and cannot be assessed.

Exploit ScenarioDerived

An attacker crafts a zip archive containing a tiny bzip2, LZMA, or Zstandard compressed member that declares an extremely large uncompressed size in its local file header. When a server-side application (such as a file upload processor) opens the archive with Python's zipfile module and reads the member, _read1() decompresses without an output bound, causing the interpreter to allocate memory proportional to the declared size until the process is killed by the OS OOM killer or crashes. No public exploit code exists at time of analysis, but the technique is a standard zip-bomb variant trivially constructable with available archive tools.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 25, 2026

Unbounded memory allocation in CPython's zipfile module allows a crafted archive to exhaust process memory during decompression of bzip2, LZMA, or Zstandard members. The ZipExtFile._read1() method lacked the max_length output bound that the DEFLATE code path already enforced, permitting a small compressed member with an attacker-controlled declared size to expand into unlimited memory per read call. No public exploit is identified at time of analysis; exploitation requires user interaction (opening the archive), and the CVSS 4.0 base score of 2.1 reflects the low, availability-only impact.

RemediationAI

The upstream fix is available as merged GitHub pull request https://github.com/python/cpython/pull/156003, which adds bounded decompress() calls for bzip2, LZMA, and Zstandard paths in zipfile. No officially tagged patched release version is confirmed from the available data - the fix exists as a merged PR commit but the PSF advisory at https://mail.python.org/archives/list/security-announce@python.org/thread/YUHXURX2WZGKGNA4ANYBQS2VZRYQ5JNK/ should be monitored for the official release version. As a compensating control prior to patching, applications processing untrusted archives should enforce a maximum archive and member size limit before passing data to zipfile (e.g., check ZipInfo.compress_size and ZipInfo.file_size), and should run extraction in a subprocess or container with an enforced memory limit (ulimit -v or cgroup memory.max) to bound the blast radius - note that the subprocess approach adds latency and IPC complexity.

Affected VersionsENISA

CPython 0 <3.16.0

Affected Packages

euvd cpython fix: 3.16.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is ZipExtFile._read1() in CPython's Lib/zipfile/__init__.py, identified by CPE cpe:2.3:a:python_software_foundation:cpython:*:*:*:*:*:*:*:*. The root cause class is CWE-400 (Uncontrolled Resource Consumption): when decompressing bzip2 (ZIP_BZIP2), LZMA (ZIP_LZMA), or Zstandard (ZIP_ZSTANDARD) members, the code called decompress(data) without a max_length argument, allowing the underlying decompressor to return arbitrarily large output in a single call bounded only by the attacker-declared uncompressed size stored in the archive header. The DEFLATE path already passed max_length to its decompressor. The fix (PR #156003) adds max_length=max(n, MIN_READ_SIZE) to those three decompressor calls, and introduces a _decompressor_needs_input() helper plus a _needs_input property on the LZMA wrapper to correctly detect when buffered internal state can be drained without reading new compressed input - a prerequisite for bounded incremental reads across all four codecs.

Know when Python gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (PSF) PRIMARY 2.1 LOW
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
vuln.today AI 4.3 MEDIUM

Network-delivered archive requires victim to open it (UI:R); impact is limited to partial memory exhaustion with no confidentiality or integrity exposure.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (PSF).

CVSS VectorVendor: PSF

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
Active
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 78% exploitable
Prevalence
Ubiquitous
Python runtime deployed across virtually all modern software infrastructure.
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy