shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
Published Apr 27, 2026
6.0
MEDIUMCVSS 4.0
EPSS 0.73%
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.
Affected products
-
- Version 0StatusaffectedConstraints<3.10.21
- Version 3.11.0StatusaffectedConstraints<3.11.16
- Version 3.12.0StatusaffectedConstraints<3.12.14
- Version 3.13.0StatusaffectedConstraints<3.13.14
- Version 3.14.0a1StatusaffectedConstraints<3.14.5rc1
- Version 3.15.0a1StatusaffectedConstraints<3.15.0b1
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Python Software Foundation | CPython | unaffected |
|
- ≤ 3.14.4
- 3.15.0
- 3.15.0
- 3.15.0
- 3.15.0
- 3.15.0
- 3.15.0
- 3.15.0
- 3.15.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
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
1 other source (NVD) ▾
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
NoneAutomatable
NoTechnical Impact
PartialDecision
n/aAssessed Apr 28, 2026 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
Apr–Oct 2026- EPSS v4
- EPSS v5
Percentile over time
- EPSS v4
- EPSS v5
Table of values (3 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 0.73% (0.00731) | 52.59th | v5 (v2026.06.15) |
| Jun 15, 2026 | 0.53% (0.00531) | 40.41th | v5 (v2026.06.15) |
| Apr 28, 2026 | 0.05% (0.00046) | 14.06th | v4 (v2025.03.14) |
References (14)
- http://www.openwall.com/lists/oss-security/2026/04/28/9 Mailing ListThird Party Advisory
- https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8 patch
- https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c patch
- https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d patch
- https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb patch
- https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94 patch
- https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe patch
- https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840 patch
- https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd patch
- https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19 patch
- https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4 patch
- https://github.com/python/cpython/issues/146581 issue-trackingExploitIssue TrackingPatchVendor Advisory
- https://github.com/python/cpython/pull/146591 patchIssue Tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/ vendor-advisoryMailing ListVendor Advisory
Change history (0)
No recorded changes yet.