Skip to content
Fencer Intel
high 7.5

CVE-2026-3087 json

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

published 6mo ago modified 14d ago also BIT-libpython-2026-3087 , BIT-python-2026-3087 , BIT-python-min-2026-3087 , EUVD-2026-25922

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 46%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami libpython 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5
  • bitnami python 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5
  • bitnami python-min 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5
  • Python Software Foundation CPython 3.10.21, 3.11.16, 3.12.14, 3.13.14, 3.14.5rc1, 3.15.0b1
  • python3 Azure Linux 3.0 3.12.9-14

azure linux advisories AZL-85274

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Is CVE-2026-3087 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.

Check with Fencer

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
6mo ago

Exploit prediction

0.55% chance of exploitation in the next 30 days, higher than 46% of all scored CVEs (FIRST EPSS, 2026-11-09).

Exploits and checks

  • github.com https://github.com/python/cpython/issues/146581 referenced PoC, tagged "exploit" by a source, unverified

CVSS scores

assigned by version score vector
CNA 4.0 6.0 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
CNA 4.0 6.0 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV 3.1 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected packages

ecosystem package affected fixed in
bitnami libpython
<3.10.21
>=3.11.0, <3.11.16
>=3.12.0, <3.12.14
>=3.13.0, <3.13.14
>=3.14.0, <3.14.5
3.10.21
3.11.16
3.12.14
3.13.14
3.14.5
bitnami python
<3.10.21
>=3.11.0, <3.11.16
>=3.12.0, <3.12.14
>=3.13.0, <3.13.14
>=3.14.0, <3.14.5
3.10.21
3.11.16
3.12.14
3.13.14
3.14.5
bitnami python-min
<3.10.21
>=3.11.0, <3.11.16
>=3.12.0, <3.12.14
>=3.13.0, <3.13.14
>=3.14.0, <3.14.5
3.10.21
3.11.16
3.12.14
3.13.14
3.14.5

Affected products

  • Python Software Foundation CPython

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.