The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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
    • 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-1703

CVE-2026-1703: pip Path Traversal Vulnerability

CVE-2026-1703 is a path traversal vulnerability in pip that allows malicious wheel archives to extract files outside the installation directory. This article covers the technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2026-1703 Overview

CVE-2026-1703 is a path traversal vulnerability in pip, the Python package installer, that occurs during the extraction of maliciously crafted wheel archives. When pip installs a wheel package, files may be extracted outside the intended installation directory due to improper path validation. The vulnerability is limited to prefixes of the installation directory, which constrains the attack surface and prevents injection or overwriting of executable files in typical deployment scenarios.

Critical Impact

Malicious wheel packages could write files to unexpected locations within the installation directory prefix, potentially leading to configuration tampering or information disclosure in specific environments.

Affected Products

  • pip (Python Package Installer)
  • Python environments using pip for package installation
  • Systems processing untrusted wheel archives

Discovery Timeline

  • 2026-02-02 - CVE CVE-2026-1703 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2026-1703

Vulnerability Analysis

This directory traversal vulnerability (CWE-22) exists in pip's wheel archive extraction functionality. The root issue lies in how pip validates that extracted files remain within the target installation directory. The vulnerability allows an attacker to craft a malicious wheel archive that, when installed via pip, extracts files to locations outside the intended installation directory but still within the same parent path prefix.

The practical impact is constrained by the limitation that traversal is restricted to prefixes of the installation directory. This means attackers cannot arbitrarily write files to any system location—they can only traverse upward within the directory hierarchy that contains the installation target. In typical Python virtual environment or system-wide pip installations, this significantly limits the attack surface.

Root Cause

The vulnerability stems from the use of os.path.commonprefix() instead of os.path.commonpath() for validating that extracted file paths remain within the installation directory. The commonprefix() function performs a character-by-character comparison and can be fooled by carefully crafted path strings that share a common prefix but don't represent a valid directory containment relationship. In contrast, commonpath() properly handles path semantics and correctly identifies whether one path is contained within another.

Attack Vector

The attack requires network access to deliver a malicious wheel package to a target system. An attacker must convince a user or automated system to install a crafted wheel archive containing specially constructed file paths. The attack requires user interaction (such as running pip install on an untrusted package) and low privileges. Successful exploitation allows limited file writes to prefixes of the installation directory, but does not typically enable code execution or significant integrity violations.

python
     abs_directory = os.path.abspath(directory)
     abs_target = os.path.abspath(target)
 
-    prefix = os.path.commonprefix([abs_directory, abs_target])
+    prefix = os.path.commonpath([abs_directory, abs_target])
     return prefix == abs_directory
 

Source: GitHub Commit

The fix replaces os.path.commonprefix() with os.path.commonpath(), which correctly validates path containment by comparing actual directory paths rather than string prefixes.

Detection Methods for CVE-2026-1703

Indicators of Compromise

  • Unexpected files appearing in parent directories of pip installation locations
  • Wheel installation logs showing unusual file extraction paths
  • Modified configuration files in directories adjacent to Python package installations

Detection Strategies

  • Monitor pip installation operations for path traversal patterns in wheel archive contents
  • Implement file integrity monitoring on Python environment directories and their parent paths
  • Audit installed wheel packages for suspicious file path entries in RECORD files

Monitoring Recommendations

  • Enable verbose logging for pip operations in production environments
  • Configure alerts for file creation events in unexpected locations near Python installation directories
  • Regularly scan wheel package contents before installation in CI/CD pipelines

How to Mitigate CVE-2026-1703

Immediate Actions Required

  • Update pip to the patched version containing commit 8e227a9be4faa9594e05d02ca05a413a2a4e7735
  • Audit recently installed wheel packages from untrusted sources
  • Review file system integrity in Python installation directory parents
  • Avoid installing wheel packages from untrusted or unverified sources

Patch Information

The vulnerability has been addressed through GitHub Pull Request #13777. The fix modifies src/pip/_internal/utils/unpacking.py to use os.path.commonpath() instead of os.path.commonprefix() for proper path containment validation. Organizations should update pip to the latest version that includes this security patch. Additional details are available in the Python Security Announce thread.

Workarounds

  • Only install wheel packages from trusted sources such as PyPI with verified signatures
  • Use isolated virtual environments for installing untrusted packages
  • Implement package hash verification when installing from requirements files using --require-hashes
  • Consider using containerized environments for testing untrusted Python packages
bash
# Verify pip version and upgrade to patched release
pip --version
pip install --upgrade pip

# Install packages with hash verification for supply chain security
pip install --require-hashes -r requirements.txt

# Use virtual environments to isolate potentially risky installations
python -m venv isolated_env
source isolated_env/bin/activate

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechN/A

  • SeverityLOW

  • CVSS Score2.0

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:A/VC:N/VI:L/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
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-22
  • Technical References
  • GitHub Commit Update

  • GitHub Pull Request Discussion

  • Python Security Announce Thread
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

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

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now 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