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

- Severity: Medium 6.0 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.53%, higher than 46% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-27T20:46:43.201Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: PSF-2026-22, BIT-LIBPYTHON-2026-3087, BIT-PYTHON-2026-3087, BIT-PYTHON-MIN-2026-3087
- Weaknesses: CWE-22
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0a1 before 3.14.5rc1; from 3.15.0a1 before 3.15.0b1
- https://github.com/python/cpython: before ab5ef98af693bded74a738570e81ea70abef2840; before b01e594fbe754a960212f908d047294e880b52fd; before fc829e88753858c8ac669594bf0093f44948c0f4; before 65b255416ae217bf0e22085be3c1976cea18bd8c; before 8e13025747e1ca72e86d1f35637123f9c306f0cb; before 8ee6aff14054b37b53e47194a2fa313e98163c94; before ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19; before a6650a2cdf0c49fb8ce0c982903aa2aa274beefe; before 7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d; before 1071290169f85c09cf767c1099564a9426cdc7e8
- python python: up to 3.14.4; 3.15.0
- libpython (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5
- python (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5
- python-min (Bitnami): before 3.10.21; from 3.11.0 before 3.11.16; from 3.12.0 before 3.12.14; from 3.13.0 before 3.13.14; from 3.14.0 before 3.14.5

## Every score

- PSF: 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`
- NVD: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/issues/146581> (exploit, advisory, issue-tracking, patch, report, vendor-advisory)
- <https://github.com/python/cpython/pull/146591> (fix, issue-tracking, patch, web)
- <https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/> (advisory, mailing-list, vendor-advisory)
- <https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840> (fix, patch)
- <https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd> (fix, patch)
- <https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4> (fix, patch)
- <https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c> (fix, patch)
- <https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb> (fix, patch)
- <https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94> (fix, patch)
- <https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19> (fix, patch)
- <https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe> (fix, patch, web)
- <https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d> (fix, patch, web)
- <https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2026/04/28/9> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-3087> (web)

## Sources

- CVE List: [CVE-2026-3087](https://www.cve.org/CVERecord?id=CVE-2026-3087), CVE Terms of Use, modified 2026-08-13
- Python Software Foundation: [PSF-2026-22](https://osv.dev/vulnerability/PSF-2026-22), CC-BY-4.0, modified 2026-08-19
- NVD: [CVE-2026-3087](https://nvd.nist.gov/vuln/detail/CVE-2026-3087), Public domain, modified 2026-10-26
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-3087](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-3087), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-3087](https://osv.dev/vulnerability/BIT-PYTHON-2026-3087), Apache-2.0, modified 2026-09-10
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-3087](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-3087), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-3087 · Whole record: https://cve.day/CVE-2026-3087.json · Rebuilt by cve.day 2026-11-25T22:59:19.791Z
