CVE-2026-41140: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in python-poetry poetry
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 Analysis
Technical Summary
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.
CVE-2026-41140: CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in python-poetry 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
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.