CVEfocus › CVE database › CVE-2026-3087

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

CVSS 6.0 MediumEPSS 0.8% (higher than 52% of CVEs)Published 2026-04-27Updated 2026-08-13Assigner: PSF

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.

CWE-22

What to do

None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04python3.14Not affected
vulnerable_code_not_present
Ubuntu 25.10python3.13Not affected
vulnerable_code_not_present
Ubuntu 25.10python3.14Not affected
vulnerable_code_not_present
Ubuntu 24.04python3.12Not affected
vulnerable_code_not_present
Ubuntu 22.04python3.10Not affected
vulnerable_code_not_present

What the vendor says

As published in the CVE record by PSF, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.