Python Software Foundation CPython
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by NVD · CWE-22
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Python Software Foundation CPython
- < 3.10.21
- >= 3.11.0, < 3.11.16
- >= 3.12.0, < 3.12.14
- >= 3.13.0, < 3.13.14
- >= 3.14.0a1, < 3.14.5rc1
- >= 3.15.0a1, < 3.15.0b1
Fixed in 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1
Mitigation
Upgrade CPython to 3.10.21 or 3.11.16 or 3.12.14 or 3.13.14 or 3.14.5rc1 or 3.15.0b1 or later.
References
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.