Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconSupply crafted ZIP with `C:\target\path` entry
-
DeliveryDeliver ZIP to Windows Python application accepting uploads
-
ExploitApplication invokes `shutil.unpack_archive()`
-
InstallDrive-letter prefix evades `/` and `..` checks
-
C2`os.path.join()` resets base to attacker-controlled absolute path
-
ExecuteArbitrary file written outside extraction directory
-
ImpactLeveraged for DLL hijack or persistence
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Three specific conditions must all be satisfied: (1) the target application runs on Windows - this vulnerability is explicitly Windows-only; Linux and macOS handle drive-letter path components as literal filenames and are unaffected; (2) the application calls |
| Impact | The CVSS 4.0 score of 6.0 with AT:P (attack prerequisites present) accurately reflects the conditional nature of this vulnerability - exploitation requires a Windows execution environment, which limits the realistic attack surface compared to a cross-platform flaw. The VI:H (high integrity impact on the vulnerable system) is well-founded: arbitrary file write outside the extraction boundary can be chained to DLL hijacking, startup persistence, or configuration file manipulation if the Python process holds sufficient OS privileges. EPSS of 0.05% at the 14th percentile strongly suggests no current automated exploitation in the wild, consistent with SSVC's 'Automatable: no' and 'Exploitation: none' designations. SSVC's 'Technical Impact: partial' appears conservative - arbitrary file writes are frequently the final step before full code execution. The absence of a CISA KEV listing and confirmed public POC means this is a theoretical-but-credible risk rather than an active threat. Real-world priority should be elevated for Windows-hosted Python services that accept user-supplied ZIP files (build pipelines, file processors, deployment tools); it can be deprioritized for environments where all ZIP inputs are internally trusted. |
| Exploit ScenarioDerived | An attacker submits a crafted ZIP archive to a Windows-hosted Python web application's file-upload endpoint; the archive contains a member named |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Path traversal in CPython's shutil.unpack_archive() on Windows allows arbitrary file writes outside the intended extraction directory when processing ZIP archives containing Windows drive-letter absolute paths (e.g., C:\..., D:\...). The existing sanitization in _unpack_zipfile() rejected only Unix-style absolute paths (/) and directory traversal sequences (..), leaving Windows drive specifiers completely unchecked. No public exploit has been identified at time of analysis; EPSS of 0.05% (14th percentile) and SSVC exploitation status of 'none' indicate no observed exploitation, though the high integrity impact warrants patching in environments that process untrusted ZIP archives on Windows.
RemediationAI
Upgrade to a patched CPython release once available; fixes have been committed to multiple CPython maintenance branches via commits ab5ef98, b01e594, fc829e8, 65b2554, 8e13025, 8ee6aff, and ba0aca3 (consolidated in PR #146591 at https://github.com/python/cpython/pull/146591), but a specific tagged release version containing these patches has not been confirmed in the available data - monitor the Python security announcements list at https://mail.python.org/archives/list/security-announce@python.org/ for an official release notice. As an interim compensating control, applications that process user-supplied ZIP files on Windows should pre-filter all member filenames before calling shutil.unpack_archive(), rejecting any entry whose name matches a Windows drive-letter pattern (e.g., re.match(r'^[A-Za-z]:', name)) or any absolute-rooted form; this adds a validation step that the callee currently omits. Alternatively, replace shutil.unpack_archive() with a custom extraction loop that calls os.path.splitroot() and discards entries where the drive or root component is non-empty. Restricting upload functionality to authenticated, trusted users reduces exposure but does not eliminate the path traversal defect. Running the Python process under a low-privilege account without write access to sensitive system directories (e.g., C:\Windows\System32) is a defense-in-depth measure that limits the impact of successful exploitation.
Affected VersionsENISA
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerable code in Lib/shutil.py iterated over ZIP entries and used os.path.join(extract_dir, *name.split('/')) to construct target paths. On Windows, Python's os.path.join() silently discards preceding components when a path element contains a drive root (e.g., C:\), so a ZIP entry named C:/Windows/evil.dll would resolve entirely to C:\Windows\evil.dll, ignoring extract_dir. The original filter checked only for names starting with / or containing .., missing Windows-specific absolute forms such as C:/, D:\, E:relative, //server/share, and \\server2\share. The CWE-22 root cause is path traversal via absolute path injection rather than relative component escape. CPE strings confirm all CPython versions are affected (cpe:2.3:a:python:python:*:*:*:*:*:*:*:*) exclusively on Windows; macOS and Linux handle these path components literally and are not vulnerable. The fix (PR #146591) replaces manual extraction with zipfile.ZipFile.extractall() under a new _ignore_invalid_names flag and adds os.path.splitroot() logic in zipfile._extract_member() to detect and discard entries with drive letters, root separators, or post-sanitization name changes.
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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
No authentication inherent to the library; Windows-only prerequisite captured by context, not AC; high integrity from arbitrary write; no confidentiality or availability impact.
Primary rating from Vendor (python).
CVSS VectorVendor: python
DescriptionCVE.org
If shutil.unpack_archive() is given a ZIP archive with an absolute Windows path containing a drive (C:\\...) then the archive will be extracted outside the target directory which is different than other operating systems. Only Windows is affected by this vulnerability.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
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
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-25922
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB