A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-41140

CVE-2026-41140: Poetry Path Traversal Vulnerability

CVE-2026-41140 is a path traversal vulnerability in Poetry, a Python dependency manager, affecting versions prior to 2.3.4. This flaw allows unsafe extraction of sdist tarballs. Explore technical details, affected versions, and fixes.

Published: April 30, 2026

CVE-2026-41140 Overview

CVE-2026-41140 is a path traversal vulnerability in Poetry, a popular dependency manager for Python. The vulnerability exists in the extractall() function within src/poetry/utils/helpers.py (lines 410-426), which extracts sdist tarballs without adequate path traversal protection on specific Python versions where tarfile.data_filter is unavailable. This affects Python versions 3.10.0 through 3.10.12 and 3.11.0 through 3.11.4, which are still supported by Poetry. The vulnerability has been fixed in Poetry version 2.3.4.

Critical Impact

Attackers could potentially exploit this path traversal flaw to write files outside the intended extraction directory when installing malicious Python packages via sdist tarballs on vulnerable Python versions.

Affected Products

  • Poetry versions prior to 2.3.4
  • Python 3.10.0 - 3.10.12 (when used with vulnerable Poetry versions)
  • Python 3.11.0 - 3.11.4 (when used with vulnerable Poetry versions)

Discovery Timeline

  • 2026-04-24 - CVE CVE-2026-41140 published to NVD
  • 2026-04-27 - Last updated in NVD database

Technical Details for CVE-2026-41140

Vulnerability Analysis

This vulnerability is classified as CWE-22 (Path Traversal), which occurs when software uses external input to construct a pathname intended to identify a file or directory located within a restricted parent directory, but fails to properly neutralize special elements that can cause the pathname to resolve outside the restricted directory.

The vulnerable code path in Poetry's extractall() function processes sdist (source distribution) tarballs during package installation. On Python versions that lack the tarfile.data_filter security feature (introduced in Python 3.12 and backported to some later patch versions of 3.10 and 3.11), the extraction process does not validate file paths within the archive. This allows specially crafted archives containing path traversal sequences (such as ../) to write files to arbitrary locations on the filesystem outside the intended extraction directory.

Root Cause

The root cause is the absence of path traversal validation when extracting tarball contents on older Python versions. The tarfile.data_filter function, which provides built-in protection against dangerous archive members, is not available in Python 3.10.0-3.10.12 and 3.11.0-3.11.4. Poetry's extraction code did not implement alternative safeguards for these Python versions, leaving the extraction process vulnerable to malicious archive contents.

Attack Vector

An attacker could exploit this vulnerability by creating a malicious Python package with a specially crafted sdist tarball containing files with path traversal sequences in their names. When a user installs this package using Poetry on an affected Python version, files could be written outside the intended extraction directory. The attack requires network access to distribute the malicious package and user interaction to install it.

The vulnerability manifests in the tarball extraction routine where archive member paths are not sanitized before extraction. A malicious archive could contain entries like ../../../etc/cron.d/malicious that would escape the extraction directory. For technical details, see the GitHub Security Advisory.

Detection Methods for CVE-2026-41140

Indicators of Compromise

  • Unexpected files appearing outside of Python virtual environment or package directories after package installation
  • Poetry installation logs showing extraction of files with suspicious path components containing ../ sequences
  • File system monitoring alerts for writes to sensitive directories during poetry install operations

Detection Strategies

  • Monitor Poetry installation processes for file system operations outside expected directories
  • Audit installed packages for suspicious file paths in sdist archives using tar -tvf to inspect archive contents before installation
  • Implement file integrity monitoring on critical system directories that should not be modified during Python package installations

Monitoring Recommendations

  • Enable file system auditing on development and CI/CD systems where Poetry is used
  • Review Poetry installation logs for anomalous extraction behavior
  • Monitor for newly created files in unexpected locations following package installation operations

How to Mitigate CVE-2026-41140

Immediate Actions Required

  • Upgrade Poetry to version 2.3.4 or later, which includes the security fix
  • Upgrade Python to version 3.10.13+ or 3.11.5+ where tarfile.data_filter is available
  • Audit recently installed packages if running vulnerable Poetry and Python version combinations

Patch Information

Poetry version 2.3.4 addresses this vulnerability by implementing proper path traversal protection for sdist tarball extraction. Users should upgrade to this version or later. Detailed information about the fix is available in the GitHub Security Advisory.

Workarounds

  • Upgrade Python to a version that includes tarfile.data_filter (Python 3.10.13+, 3.11.5+, or 3.12+)
  • Only install packages from trusted sources while running vulnerable versions
  • Consider using wheel packages instead of sdist tarballs where possible, as this vulnerability specifically affects tarball extraction
bash
# Upgrade Poetry to patched version
pip install --upgrade poetry>=2.3.4

# Verify Poetry version
poetry --version

# Check Python version and upgrade if needed
python --version

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechPoetry

  • SeverityLOW

  • CVSS Score0.6

  • EPSS Probability0.08%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/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 Security Advisory
  • Related CVEs
  • CVE-2026-34591: Poetry 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