| Name | CVE-2026-3087 |
| 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 | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| pypy3 (PTS) | bullseye | 7.3.5+dfsg-2+deb11u2 | fixed |
| bullseye (security) | 7.3.5+dfsg-2+deb11u5 | fixed |
| bookworm | 7.3.11+dfsg-2+deb12u3 | fixed |
| trixie | 7.3.19+dfsg-2 | fixed |
| forky, sid | 7.3.21+dfsg-4 | fixed |
| python3.11 (PTS) | bookworm | 3.11.2-6+deb12u6 | fixed |
| bookworm (security) | 3.11.2-6+deb12u3 | fixed |
| python3.13 (PTS) | trixie | 3.13.5-2 | fixed |
| forky, sid | 3.13.12-1 | fixed |
| python3.14 (PTS) | forky | 3.14.3-3 | fixed |
| sid | 3.14.4-2 | fixed |
| python3.9 (PTS) | bullseye | 3.9.2-1 | fixed |
| bullseye (security) | 3.9.2-1+deb11u6 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|
| pypy3 | source | (unstable) | (not affected) | | | |
| python3.11 | source | (unstable) | (not affected) | | | |
| python3.13 | source | (unstable) | (not affected) | | | |
| python3.14 | source | (unstable) | (not affected) | | | |
| python3.9 | source | (unstable) | (not affected) | | | |
Notes
- python3.14 <not-affected> (Windows-specific)
- python3.13 <not-affected> (Windows-specific)
- python3.11 <not-affected> (Windows-specific)
- python3.9 <not-affected> (Windows-specific)
- pypy3 <not-affected> (Windows-specific)
https://mail.python.org/archives/list/security-announce@python.org/thread/X6FXE5C6KDKOVNX3EC3DWD5RUPFWOZA4/
https://github.com/python/cpython/pull/146591
https://github.com/python/cpython/issues/146581