CVE-2026-41140
Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4
- State
- Published
- Severity
- 0.6 Low
- Published
- Apr 24, 2026
- Updated
- Jul 15, 2026
- Reserved
- Apr 17, 2026
Description
Poetry is a dependency manager for Python. Prior to 2.3.4, the extractall() function in src/poetry/utils/helpers.py:410-426 extracts sdist tarballs without path traversal protection on Python versions where tarfile.data_filter is unavailable. Considering only Python versions which are still supported by Poetry, these are 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4. This vulnerability is fixed in 2.3.4.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 0.6 Low | 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 | GitHub_M |
| 3.1 | 8.7 High | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H | redhat-SADP |
Weaknesses
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Products
| Product | Versions |
|---|---|
poetrypython-poetry |
|
References
- https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647
- https://access.redhat.com/security/cve/CVE-2026-41140vdb-entry
- RHBZ#2461604issue-tracking
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json
- https://access.redhat.com/errata/RHSA-2026:24866vendor-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.