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

Published Apr 27, 2026
·
Updated

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.

Affected Software

11 affected components
Python Python (shutil.unpack_archive)
All of the following
Any of the following
Python Python<=3.14.4
Python Python=3.15.0-alpha_1
Python Python=3.15.0-alpha_2
Python Python=3.15.0-alpha_3
Python Python=3.15.0-alpha_4
Python Python=3.15.0-alpha_5
Python Python=3.15.0-alpha_6
Python Python=3.15.0-alpha_7
Python Python=3.15.0-alpha_8
Microsoft Windows

Event History

Apr 27, 2026
CVE Published
via MITRE·08:46 PM
Data Sourced
via MITRE·08:46 PM
DescriptionWeakness
Data Sourced
via NVD·09:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-3087?

CVE-2026-3087 is considered a moderate severity vulnerability due to the potential for extracting files outside the intended directory.

2

How do I fix CVE-2026-3087?

To fix CVE-2026-3087, ensure you are using a version of Python where this vulnerability has been patched or modify your code to validate the file paths before extraction.

3

What impact does CVE-2026-3087 have on my system?

CVE-2026-3087 can lead to unauthorized file access and potential system compromise if exploited by an attacker.

4

Which versions of Python are affected by CVE-2026-3087?

CVE-2026-3087 affects versions of Python that include the shutil.unpack_archive() function before the vulnerability was addressed.

5

How can I determine if my application is vulnerable to CVE-2026-3087?

Check if your application uses shutil.unpack_archive() to extract ZIP files with absolute Windows paths and review your Python version for related security patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203