CVE-2026-3087: Python shutil.unpack_archive - Path Traversal
- Cve: CVE-2026-3087
- Name: Python shutil.unpack_archive - Path Traversal
- 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.
- Impact: Attackers can extract files outside the intended directory, potentially overwriting critical files and compromising system integrity.
- Remediation: Update to the latest Python version with the fix for this issue.
- Vulnerability type: path_traversal
- Vulnerability impact: file_system_write, data_tampering
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- Epss score: 0.00551
- Epss percentile: 0.46981
- Assignee: [email protected]
- Published at: 2026-04-27T21:16:42Z
- Age in days: 211
- Modified at: 2026-10-26T21:10:00Z
- Patch available: yes
- Public exploits total: 1
- References total: 14
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-3087
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/python/cpython/issues/146581 | nvd | 2026-04-27 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| python:python | = 3.15.0 alpha8, = 3.15.0 alpha7, = 3.15.0 alpha6, = 3.15.0 alpha5, = 3.15.0 alpha4, = 3.15.0 alpha1, = 3.15.0 alpha2, = 3.15.0 alpha3, <= 3.14.4 | yes | nvd | /v1/products/python/python |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| python/cpython | commit, fix, issues, pull | yes | /v1/repositories/python/cpython |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-04-27
- Remote: yes
- Exposed hosts: 5115604
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports