A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection Platforms. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Read More
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-3087

CVE-2026-3087: Python shutil Path Traversal Vulnerability

CVE-2026-3087 is a path traversal vulnerability in Python's shutil.unpack_archive() that allows ZIP archives with absolute Windows paths to extract files outside the target directory. This guide covers technical details, impact, and mitigation.

Published: April 30, 2026

CVE-2026-3087 Overview

CVE-2026-3087 is a path traversal vulnerability affecting Python's shutil.unpack_archive() function on Windows systems. When processing a ZIP archive containing absolute Windows paths with drive letters (e.g., C:\...), the function extracts files outside the intended target directory. This behavior differs from other operating systems and creates a significant security risk for applications that process untrusted ZIP archives on Windows platforms.

Critical Impact

Attackers can craft malicious ZIP archives that extract files to arbitrary locations on Windows systems, potentially overwriting critical system files or placing malicious executables in sensitive directories.

Affected Products

  • Python (Windows installations)
  • Applications using shutil.unpack_archive() to process untrusted ZIP files on Windows
  • Python-based archive extraction utilities on Windows platforms

Discovery Timeline

  • 2026-04-27 - CVE-2026-3087 published to NVD
  • 2026-04-29 - Last updated in NVD database

Technical Details for CVE-2026-3087

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal. The root issue lies in how Python's shutil.unpack_archive() handles ZIP archive entries containing absolute Windows-style paths with drive specifications.

On non-Windows operating systems, absolute paths in ZIP archives are typically sanitized or rejected. However, on Windows, paths beginning with drive letters (such as C:\Windows\System32\) are processed differently, allowing the extraction process to write files to locations outside the intended extraction directory.

The attack surface requires network access and low privileges to exploit, though some attacker-controlled preconditions must be met for successful exploitation. The primary impact is to system integrity, as attackers can write arbitrary files to the filesystem.

Root Cause

The vulnerability stems from insufficient path validation in the shutil.unpack_archive() function when handling Windows-specific absolute paths. The function fails to properly normalize or reject paths containing drive letters before extraction, allowing the absolute path to override the target directory specification.

Standard path traversal protection mechanisms that check for ../ sequences do not account for Windows absolute paths with drive specifications, which bypass the intended extraction directory entirely.

Attack Vector

An attacker can exploit this vulnerability by crafting a malicious ZIP archive containing entries with absolute Windows paths. When a vulnerable application uses shutil.unpack_archive() to extract this archive, the files are written to the attacker-specified absolute paths rather than the intended target directory.

The attack scenario typically involves:

  1. Creating a ZIP archive with entries containing absolute Windows paths (e.g., C:\Users\Public\malicious.exe)
  2. Delivering the malicious archive to a target system through any vector (email, web upload, etc.)
  3. Waiting for or triggering the archive extraction via shutil.unpack_archive()
  4. The malicious files are written to attacker-controlled locations on the filesystem

This can lead to arbitrary file write, potentially enabling code execution through DLL hijacking, startup folder persistence, or overwriting critical system/application files.

Detection Methods for CVE-2026-3087

Indicators of Compromise

  • Unexpected files appearing in system directories or outside designated extraction paths
  • ZIP archives containing entries with Windows absolute paths (paths starting with drive letters like C:\)
  • Log entries showing file write operations to unexpected locations during archive extraction
  • Python process writing files outside the working directory when processing archives

Detection Strategies

  • Monitor Python applications for calls to shutil.unpack_archive() with untrusted input
  • Implement file integrity monitoring on critical system directories to detect unauthorized modifications
  • Analyze ZIP archives before extraction for entries containing absolute Windows paths
  • Use application logging to track extraction target directories versus actual file write locations

Monitoring Recommendations

  • Enable verbose logging for Python applications that process archive files
  • Deploy file system auditing on Windows systems to track file creation events
  • Implement network monitoring for suspicious ZIP file transfers targeting archive processing applications
  • Review application logs for path-related errors or unexpected extraction behaviors

How to Mitigate CVE-2026-3087

Immediate Actions Required

  • Update Python installations to patched versions as soon as available
  • Audit applications that use shutil.unpack_archive() to process untrusted input
  • Implement input validation to reject ZIP archives containing absolute paths before extraction
  • Consider using alternative extraction methods with explicit path validation until patches are applied

Patch Information

Python has released security patches to address this vulnerability. The fixes are tracked in the following commits:

  • Commit ab5ef98
  • Commit b01e594
  • Commit fc829e8

For detailed information about the vulnerability and patch status, refer to the Python Security Announcement and the GitHub Issue Discussion.

Workarounds

  • Validate ZIP archive contents before extraction, rejecting any entries with absolute paths
  • Run archive extraction in a sandboxed environment with restricted filesystem access
  • Use alternative extraction libraries that enforce strict path validation
  • Implement a wrapper function around shutil.unpack_archive() that normalizes paths and prevents directory escape
bash
# Example: Validate ZIP contents before extraction (PowerShell)
# Check for absolute paths in ZIP archive entries
Add-Type -AssemblyName System.IO.Compression.FileSystem
$zip = [System.IO.Compression.ZipFile]::OpenRead("archive.zip")
foreach ($entry in $zip.Entries) {
    if ($entry.FullName -match "^[A-Za-z]:\\") {
        Write-Warning "Dangerous absolute path detected: $($entry.FullName)"
        # Block extraction or sanitize path
    }
}
$zip.Dispose()

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechWindows

  • SeverityMEDIUM

  • CVSS Score6.0

  • EPSS Probability0.06%

  • Known ExploitedNo
  • 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Details

  • GitHub Commit Details

  • GitHub Commit Details

  • GitHub Issue Discussion

  • GitHub Pull Request

  • Python Security Announcement

  • OpenWall OSS-Security Thread
  • Related CVEs
  • CVE-2026-39844: Zauberzeug NiceGUI Path Traversal Flaw

  • CVE-2025-24054: Windows 10 Path Traversal Vulnerability

  • CVE-2026-21249: Windows 10 1607 Path Traversal Flaw

  • CVE-2026-23889: Pnpm Path Traversal Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English