CVE-2026-3087: CWE-22 in Python Software Foundation CPython
CVE-2026-3087 is a directory traversal vulnerability in Python's shutil.unpack_archive() function on Windows. When unpacking ZIP archives containing absolute Windows paths with drive letters (e.g., C:\...), files may be extracted outside the intended target directory. This behavior differs from other operating systems and affects CPython versions 3.14.0a1, 3.14.0, 3.15.0a1, and 3.15.0. The vulnerability has a medium severity rating with a CVSS score of 6. No official patch or remediation guidance is currently available.
AI Analysis
Technical Summary
The vulnerability in CPython's shutil.unpack_archive() function allows ZIP archives with absolute Windows paths containing drive letters to be extracted outside the specified target directory on Windows systems. This directory traversal issue (CWE-22) can lead to files being placed in unintended locations, potentially overwriting important files or bypassing security controls. Only Windows platforms are affected due to the handling of absolute Windows paths. The affected versions are 3.14.0a1, 3.14.0, 3.15.0a1, and 3.15.0. There is no vendor advisory indicating an official fix or patch at this time.
Potential Impact
On Windows systems, an attacker who can supply a crafted ZIP archive to shutil.unpack_archive() may cause files to be extracted outside the intended directory. This could lead to overwriting or placing files in arbitrary locations, potentially impacting system integrity or security. The vulnerability does not affect other operating systems. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid unpacking untrusted ZIP archives with shutil.unpack_archive() on Windows or implement additional validation to prevent extraction of absolute paths with drive letters.
CVE-2026-3087: CWE-22 in Python Software Foundation CPython
Description
CVE-2026-3087 is a directory traversal vulnerability in Python's shutil.unpack_archive() function on Windows. When unpacking ZIP archives containing absolute Windows paths with drive letters (e.g., C:\...), files may be extracted outside the intended target directory. This behavior differs from other operating systems and affects CPython versions 3.14.0a1, 3.14.0, 3.15.0a1, and 3.15.0. The vulnerability has a medium severity rating with a CVSS score of 6. No official patch or remediation guidance is currently available.
CVSS v4.0
Score 6.0medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in CPython's shutil.unpack_archive() function allows ZIP archives with absolute Windows paths containing drive letters to be extracted outside the specified target directory on Windows systems. This directory traversal issue (CWE-22) can lead to files being placed in unintended locations, potentially overwriting important files or bypassing security controls. Only Windows platforms are affected due to the handling of absolute Windows paths. The affected versions are 3.14.0a1, 3.14.0, 3.15.0a1, and 3.15.0. There is no vendor advisory indicating an official fix or patch at this time.
Potential Impact
On Windows systems, an attacker who can supply a crafted ZIP archive to shutil.unpack_archive() may cause files to be extracted outside the intended directory. This could lead to overwriting or placing files in arbitrary locations, potentially impacting system integrity or security. The vulnerability does not affect other operating systems. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is released, users should avoid unpacking untrusted ZIP archives with shutil.unpack_archive() on Windows or implement additional validation to prevent extraction of absolute paths with drive letters.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- PSF
- Date Reserved
- 2026-02-23T23:14:46.433Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69efd1e7ba26a39fba655233
Added to database: 04/27/2026, 21:15:19 UTC
Last enriched: 06/29/2026, 22:57:30 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 211
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.