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

Wed, 29 Apr 2026 16:15:00 +0000


Tue, 28 Apr 2026 15:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 28 Apr 2026 06:30:00 +0000

Type Values Removed Values Added
References

Tue, 28 Apr 2026 00:30:00 +0000

Type Values Removed Values Added
First Time appeared Python
Python cpython
Vendors & Products Python
Python cpython

Mon, 27 Apr 2026 21:15:00 +0000

Type Values Removed Values Added
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.
Title shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs
Weaknesses CWE-22
References
Metrics cvssV4_0

{'score': 6, 'vector': '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: PSF

Published: 2026-04-27T20:46:43.201Z

Updated: 2026-04-29T15:29:37.860Z

Reserved: 2026-02-23T23:14:46.433Z

Link: CVE-2026-3087

cve-icon Vulnrichment

Updated: 2026-04-28T05:07:42.331Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-04-27T21:16:42.480

Modified: 2026-04-29T16:16:24.020

Link: CVE-2026-3087

cve-icon Redhat

No data.