CVE-2026-3087
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
6.0
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
- Record
CVE-2026-3087- CVSS 4.0
- 6.0 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2026-25922
6.0
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.
- Record
EUVD-2026-25922- CVSS 4.0
- 6.0 Medium
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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-7r27-jhmm-vmp6
6.0
If `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a...
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.
- Record
GHSA-7r27-jhmm-vmp6- CVSS 4.0
- 6.0 Medium
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
6.0
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.
- Record
CVE-2026-3087- CVSS 4.0
- 6.0 Medium
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
6.0
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
- Record
CVE-2026-3087- CVSS 4.0
- 6.0 Medium
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 - Weakness
- CWE-22
- Updated
- 2026-11-04
OSVUBUNTU-CVE-2026-3087
6.0
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.
- Record
UBUNTU-CVE-2026-3087- CVSS 4.0
- 6.0 Medium
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 - CVSS 3.1
- 7.5 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Updated
- 2026-11-02
Show 5 moreShow less
OSVAZL-85274 No score
CVE-2026-3087 affecting package python3 for versions less than 3.12.9-14
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.
- Record
AZL-85274- Updated
- 2026-11-02
OSVBIT-libpython-2026-3087 No score
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
- Record
BIT-libpython-2026-3087- Updated
- 2026-11-02
OSVBIT-python-2026-3087 No score
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
- Record
BIT-python-2026-3087- Updated
- 2026-11-02
OSVBIT-python-min-2026-3087 No score
shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
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.
- Record
BIT-python-min-2026-3087- Updated
- 2026-11-02
OSVPSF-2026-22 No score
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.
- Record
PSF-2026-22- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
python3Azure Linux:3 |
before 3.12.9-14 | 3.12.9-14 |
libpythonBitnami |
before 3.10.21, 3.11.0 up to 3.11.16, 3.12.0 up to 3.12.14, 3.13.0 up to 3.13.14, 3.14.0 up to 3.14.5 | 3.10.213.11.163.12.143.13.143.14.5 |
pythonBitnami |
before 3.10.21, 3.11.0 up to 3.11.16, 3.12.0 up to 3.12.14, 3.13.0 up to 3.13.14, 3.14.0 up to 3.14.5 | 3.10.213.11.163.12.143.13.143.14.5 |
python-minBitnami |
before 3.10.21, 3.11.0 up to 3.11.16, 3.12.0 up to 3.12.14, 3.13.0 up to 3.13.14, 3.14.0 up to 3.14.5 | 3.10.213.11.163.12.143.13.143.14.5 |
History
| Recorded | Changed | Sources |
|---|---|---|
| facts | OSV | |
| affected | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2026-3087 is a medium vulnerability (CVSS 6.0) in Python, published April 27, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.55%, the 46th percentile. Fixed in python3 3.12.9-14.
References
github.com/python/cpython/pull/146591
github.com/python/cpython/issues/146581
mail.python.org/archives/list/[email protected]/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4
github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
Show 14 moreShow less
github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe
github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d
github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8
openwall.com/lists/oss-security/2026/04/28/9
nvd.nist.gov/vuln/detail/CVE-2026-3087
github.com/advisories/GHSA-7r27-jhmm-vmp6
github.com/CVEProject/cvelistV5/tree/main/cves/2026/3xxx/CVE-2026-3087.json
github.com/python/cpython
ubuntu.com/security/CVE-2026-3087
cve.org/CVERecord?id=CVE-2026-3087