Vulnerability · Published Apr 27, 2026 · Assigned by PSF

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

Medium 6.0

In plain English

A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 46% of all known vulnerabilities).

Severity (CVSS 4.0)6.0Medium
Exploit odds (30 days)0.6%top 53.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Ubuntu:22.04:LTSpython3.10no fix listedUBUNTU-CVE-2026-3087
Ubuntu:24.04:LTSpython3.12no fix listedUBUNTU-CVE-2026-3087
Ubuntu:25.10python3.13no fix listedUBUNTU-CVE-2026-3087
Ubuntu:25.10python3.14no fix listedUBUNTU-CVE-2026-3087
Ubuntu:26.04:LTSpython3.14no fix listedUBUNTU-CVE-2026-3087

Affected products (as reported)

VendorProductVersions
Python Software Foundation CPython 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.143.14.0a1 – before 3.14.5rc13.15.0a1 – before 3.15.0b1

Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

References