CVE-2026-3087: 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...
High CVSS 7.5
- CVE id
- CVE-2026-3087
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| Python Runtimes and servers |
<= 3.14.4 | after 3.14.4 |
Versions we track that it affects: Python 3.11.14
How to fix it
Upgrade Python to a release newer than 3.14.4.
python --version
- Install the patched Python release of your minor line (pyenv, the python image tag, or your OS packages) and recreate virtual environments.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2026-3087 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2026-3087
- Web: https://github.com/python/cpython/commit/1071290169f85c09cf767c1099564a9426cdc7e8
- Web: https://github.com/python/cpython/commit/65b255416ae217bf0e22085be3c1976cea18bd8c
- Web: https://github.com/python/cpython/commit/7ef7dd0a74f47facd1fadcbc77f8fb03beb5eb4d
- Web: https://github.com/python/cpython/commit/8e13025747e1ca72e86d1f35637123f9c306f0cb
- Web: https://github.com/python/cpython/commit/8ee6aff14054b37b53e47194a2fa313e98163c94
- Web: https://github.com/python/cpython/commit/a6650a2cdf0c49fb8ce0c982903aa2aa274beefe
- Web: https://github.com/python/cpython/commit/ab5ef98af693bded74a738570e81ea70abef2840
- Web: https://github.com/python/cpython/commit/b01e594fbe754a960212f908d047294e880b52fd
- Web: https://github.com/python/cpython/commit/ba0aca3bffce431fe2fbd53ca4cd6a717a2e2c19
- Web: https://github.com/python/cpython/commit/fc829e88753858c8ac669594bf0093f44948c0f4
- Web: https://github.com/python/cpython/issues/146581
- Web: https://github.com/python/cpython/pull/146591
- Web: https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.