Skip to content
CVE PROGRAM SOURCE RECORD6.0 Medium

CVE-2026-3087

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

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 statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Python Software Foundation CPython

Default version status: unaffected

  • 0 to < 3.10.21affected
  • 3.11.0 to < 3.11.16affected
  • 3.12.0 to < 3.12.14affected
  • 3.13.0 to < 3.13.14affected
  • 3.14.0a1 to < 3.14.5rc1affected
  • 3.15.0a1 to < 3.15.0b1affected

References