Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 65%

CVE-2026-3087: CWE-22 in Python Software Foundation CPython

0
Medium
VulnerabilityCVE-2026-3087cvecve-2026-3087cwe-22
Published: Mon Apr 27 2026 (04/27/2026, 20:46:43 UTC)
Source: CVE Database V5
Vendor/Project: Python Software Foundation
Product: CPython

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.

CVSS v4.0

Score 6.0medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
High
Vuln. Availability
None
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

Affected versions
3.14.0a13.15.0a1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 06/10/2026, 21:43:20 UTC

Technical Analysis

The vulnerability CVE-2026-3087 in Python's CPython involves the shutil.unpack_archive() function improperly handling ZIP archives that contain absolute Windows paths with drive letters. This allows extraction of files outside the specified target directory on Windows systems, constituting a directory traversal (CWE-22) flaw. This issue is specific to Windows and does not affect other operating systems. The vulnerability was published on 2026-04-27 with a CVSS 4.0 score of 6. The Python Software Foundation has not yet provided an official fix or remediation level for this issue.

Potential Impact

Successful exploitation allows an attacker to cause files within a ZIP archive to be extracted outside the intended directory on Windows systems, potentially overwriting arbitrary files. This could lead to unauthorized file modification or code execution depending on the context in which shutil.unpack_archive() is used. The impact is limited to Windows platforms due to the handling of absolute Windows paths with drive letters.

Mitigation Recommendations

Patch status is not yet confirmed — check the Python Software Foundation 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 outside the target directory.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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: 4/27/2026, 9:15:19 PM

Last enriched: 6/10/2026, 9:43:20 PM

Last updated: 6/12/2026, 4:02:39 AM

Views: 127

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses