CVE 6 MEDIUM

shutil.unpack_archive() doesn’t check for Windows absolute paths in ZIPs_CVE-2026-3087

6 / 10
MEDIUM
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

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.

Basic Information

ID CVE-2026-3087
Source PSF
Published Apr 27, 2026 at 20:46
Modified Apr 27, 2026 at 20:50

Affected Product

Vendor Python Software Foundation
Product CPython
Affected Versions Python Software Foundation CPython 0

CWE Classification

References

💭 Join the Security Discussion

🔒 Your email address will not be published. Required fields are marked *

⚠️ Please be respectful and constructive in your comments. Security discussions should remain professional.