CVE-2026-3087 MEDIUM

CVE-2026-3087: shutil.unpack_archive() doesn't check for Windows absolute paths in ZIPs

Vendor Python Software Foundation
Product CPython
Weakness CWE-22 · Path traversal
Published April 27, 2026
Last update June 10, 2026

CVSS base score

6.0/10
Attack vector Network
Attack complexity Low
Privileges required Low
User interaction None
Confidentiality
Integrity

CVSS 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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

April 27, 2026 CVE published
June 10, 2026 Record updated