Skip to content

CVE-2026-3087 shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs

MediumCVSS 6.0 EPSS 0.55%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Debian

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.

Upgrade path

4 packages: 2 fixed, 1 partially fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
cbl-mariner python3(CBL-Mariner 2.0) All versions No fix listed No fix yet
azure linux python3(Azure Linux 3.0) < 3.12.9-14; All versions 3.12.9-14 Partially fixed
python <= 3.14.4; = 3.15.0-alpha1; = 3.15.0-alpha2; = 3.15.0-alpha3 +5 more after 3.14.4 Fixed
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 +2 more 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1 Fixed

Affected products

ProductAffected versionsFixed in
azure linux python3(Azure Linux:3.0) < 3.12.9-14 3.12.9-14
azure linux python3(Azure Linux:3.0) All versions No fix listed
cbl-mariner python3(CBL-Mariner:2.0) All versions No fix listed
Python Software Foundation CPython < 3.10.21 3.10.21
Python Software Foundation CPython >= 3.11.0, < 3.11.16 3.11.16
Python Software Foundation CPython >= 3.12.0, < 3.12.14 3.12.14
Python Software Foundation CPython >= 3.13.0, < 3.13.14 3.13.14
Python Software Foundation CPython >= 3.14.0a1, < 3.14.5rc1 3.14.5rc1
Python Software Foundation CPython >= 3.15.0a1, < 3.15.0b1 3.15.0b1
python <= 3.14.4 No fix listed
python = 3.15.0-alpha1 No fix listed
python = 3.15.0-alpha2 No fix listed
python = 3.15.0-alpha3 No fix listed
python = 3.15.0-alpha4 No fix listed
python = 3.15.0-alpha5 No fix listed
python = 3.15.0-alpha6 No fix listed
python = 3.15.0-alpha7 No fix listed
python = 3.15.0-alpha8 No fix listed

References