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
python: python; microsoft: windows
References10
- github.com/python/cpython/issues/146581 ExploitIssue TrackingPatchVendor Advisory
- mail.python.org/archives/list/[email protected]/thre… Mailing ListVendor Advisory
- github.com/python/cpython/commit/65b255416ae217bf0e22085be3c197… Patch
- github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123… Patch
- github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa31… Patch
- github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea… Patch
- github.com/python/cpython/commit/b01e594fbe754a960212f908d04729… Patch
- github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a… Patch
- github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093… Patch
- github.com/python/cpython/pull/146591 Issue TrackingPatch
Metrics
- CVSS 3.1
-
7.5
HIGH
Score source: NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - CVSS 4.0
-
6.0
MEDIUM
Score source: CNA
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 - EPSS — exploit probability
- 1% percentile: 47 · as of 13 November 2026
- CWE
- CWE-22
Could this be exploited in your environment?
A patch closes the known hole. A penetration test shows what an attacker can still reach — with proof.