CVE-2026-3087
If `shutil.unpack_archive()` is given a ZIP archive with an …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/python/cpython/issues/146581
- github.com/python/cpython/pull/146591
- mail.python.org/archives/list/[email protected]/thread/X6FXE5C6KDKOVNX3EC3DWD5R
- www.openwall.com/lists/oss-security/2026/04/28/9
- github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
- github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
- github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
- github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
- nvd.nist.gov/vuln/detail/CVE-2026-3087
- cve.org/CVERecord?id=CVE-2026-3087
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.