CVE-2026-3087
7.5 HIGHIf `shutil.unpack_archive()` is given a ZIP archive with an absolute Windows path containing a drive (`C:\\...`) then the archive will be...
Published: 2026-04-27 · Last updated: 2026-06-05
Severity and scoring
- CVSS
- 7.5 HIGH
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
- CWE
- CWE-22
Affected products
| Vendor | Product |
|---|---|
| python | python |
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.
Source: NVD
References
- [NVD]https://nvd.nist.gov/vuln/detail/CVE-2026-3087
- [Patch]https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
- [Patch]https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
- [Patch]https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
- [Patch]https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
- [Patch]https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
- [Patch]https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
- [Patch]https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
- [Patch]https://github.com/python/cpython/issues/146581
- [Patch]https://github.com/python/cpython/pull/146591
- [Vendor advisory]https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/
- [Other]http://www.openwall.com/lists/oss-security/2026/04/28/9
Related CVEs
Same vendor
- CVE-2026-7210 — `xml.parsers.expat` and `xml.etree.ElementTree` use insufficient entropy for Expat hash-flooding protection, which allows a crafted XML d... (9.8 CRITICAL)
- CVE-2026-6019 — http.cookies.Morsel.js_output() returns an inline <script> snippet and only escapes " for JavaScript string context (6.1 MEDIUM)
- CVE-2026-4224 — When an Expat parser with a registered ElementDeclHandler parses an inline document type definition containing a deeply nested content mo... (7.5 HIGH)
- CVE-2026-3644 — The fix for CVE-2026-0672, which rejected control characters in http.cookies.Morsel, was incomplete (7.5 HIGH)
- CVE-2025-13462 — The "tarfile" module would still apply normalization of AREGTYPE (\x00) blocks to DIRTYPE, even while processing a multi-block member suc... (9.8 CRITICAL)
Same CWE
- CVE-2026-52726 — Dulwich is a pure-Python implementation of the Git file formats and protocols (7.5 HIGH)
- CVE-2026-49219 — ImageMagick is free and open-source software used for editing and manipulating digital images (5.5 MEDIUM)
- CVE-2026-47712 — Dulwich is a pure-Python implementation of the Git file formats and protocols (3.3 LOW)
- CVE-2026-46703 — Boxlite is a sandbox service that allows users to create lightweight virtual machines (Boxes) and launch OCI containers within them to ru... (9.6 CRITICAL)
- CVE-2026-42305 — Dulwich is a pure-Python implementation of the Git file formats and protocols (8.8 HIGH)