CVE-2026-3087 Details
Description
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.
A vulnerability exists in the Python CPython standard library's shutil module, specifically in the unpack_archive() function, which handles ZIP file extraction. On Windows, if a ZIP archive contains absolute paths with a drive prefix, such as 'D:/...', the files can be extracted outside the designated target directory. This issue arises because the function does not properly sanitize Windows-specific path formats, allowing crafted ZIP files to escape the intended extraction location. This vulnerability is not present on other operating systems.
The vulnerability has been fixed in Python versions 3.11.16, 3.12.9, 3.13.5, 3.14.3, and 3.15.0. Users should upgrade to one of these versions.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 28, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| python python | <= 3.14.4 3.15.0 alpha1 3.15.0 alpha2 3.15.0 alpha3 3.15.0 alpha4 3.15.0 alpha5 3.15.0 alpha6 3.15.0 alpha7 3.15.0 alpha8 |
CPE
Remediation
| |
| microsoft windows | All versions |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Aug 13, 2026 | CVE Modified | [email protected] |
| Aug 10, 2026 | CVE Modified | [email protected] |
| Aug 10, 2026 | CVE Modified | [email protected] |
| Aug 5, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 5, 2026 | Modified Analysis | [email protected] |
| Jun 4, 2026 | CVE Modified | [email protected] |
| May 13, 2026 | Initial Analysis | [email protected] |
| Apr 29, 2026 | CVE Modified | [email protected] |
| Apr 28, 2026 | CVE Modified | CVE |
| Apr 27, 2026 | New CVE Received | [email protected] |