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…

CVE-2026-41140: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in python-poetry poetry

0
Low
VulnerabilityCVE-2026-41140cvecve-2026-41140cwe-22
Published: Fri Apr 24 2026 (04/24/2026, 17:10:33 UTC)
Source: CVE Database V5
Vendor/Project: python-poetry
Product: poetry

Description

CVE-2026-41140 is a path traversal vulnerability in python-poetry versions prior to 2. 3. 4. The issue occurs in the extractall() function when extracting source distribution tarballs on certain supported Python versions (3. 10. 0 - 3. 10. 12 and 3. 11. 0 - 3.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/24/2026, 17:51:23 UTC

Technical Analysis

The vulnerability in python-poetry affects the extractall() function in src/poetry/utils/helpers.py, which extracts sdist tarballs without adequate path traversal protection on specific supported Python versions lacking tarfile.data_filter. This improper limitation of pathnames (CWE-22) could allow files to be extracted outside the target directory. The issue is resolved in poetry 2.3.4.

Potential Impact

An attacker could craft a malicious source distribution tarball that, when extracted by vulnerable poetry versions on affected Python versions, may write files outside the intended extraction directory. This could lead to overwriting arbitrary files if the user has sufficient permissions. However, the CVSS score is low (0.6), indicating limited impact and exploitability. No known exploits have been reported.

Mitigation Recommendations

Upgrade poetry to version 2.3.4 or later, where this path traversal vulnerability is fixed. Since no official remediation level is provided beyond this, applying the update is the recommended action. Patch status is confirmed by the vendor's versioning information.

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
GitHub_M
Date Reserved
2026-04-17T12:59:15.738Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 69ebaa0487115cfb685ef421

Added to database: 4/24/2026, 5:36:04 PM

Last enriched: 4/24/2026, 5:51:23 PM

Last updated: 4/24/2026, 8:26:25 PM

Views: 4

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