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

Published Apr 27, 2026
·
Updated

If shutil.unpackarchive() 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.

Other sources

shutil.unpackarchive() doesn't check for Windows absolute paths in ZIPs

Microsoft

Affected Software

13 affected componentsFixes available
Python Python (shutil.unpack_archive)
Microsoft azl3 python3 3.12.9-13<3.12.9-14
3.12.9-14
All of the following
Any of the following
Python Python<=3.14.4
Python Python=3.15.0-alpha1
Python Python=3.15.0-alpha2
Python Python=3.15.0-alpha3
Python Python=3.15.0-alpha4
Python Python=3.15.0-alpha5
Python Python=3.15.0-alpha6
Python Python=3.15.0-alpha7
Python Python=3.15.0-alpha8
Microsoft Windows
Microsoft azl3 python3 3.12.9-14<3.12.9-14
3.12.9-14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.12.9-14

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
May 1, 2026
Data Sourced
via Microsoft·08:04 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:04 AM
DescriptionSeverity
Updated
via Microsoft·08:04 AM
Affected 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