Back

MEDIUM

shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs

Published Apr 27, 2026

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

Remediation

No remediation recorded yet.

Metrics

Weaknesses (1)

References (14)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner PSF
Published Apr 27, 2026
Updated Aug 13, 2026
Reserved Feb 23, 2026
CISA Vulnrichment
Updated Apr 28, 2026
NVD
Status Modified
Modified Aug 13, 2026
Red Hat
Severity n/a
Public date n/a