CVE-2026-3087
Analyzed
Analyzed - Analysis Complete
Path Traversal in Python shutil.unpack_archive() on Windows
Publication date: 2026-04-27
Last updated on: 2026-06-05
Assigner: Python Software Foundation
Description
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.
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | 3.15.0 |
| python | python | to 3.14.4 (inc) |
| python | python | 3.15.0 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |