shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
At a glance
Severity
MEDIUM 6.0
EPSS
EPSS 0.55 % · percentile 46 (2026-10-27)
State
PUBLISHED
Published
Updated
Assigner
PSF
NVD status
Modified
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.