Vulnerability · Published Apr 24, 2026 · Assigned by GitHub_M
CVE-2026-41140Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4
High 8.7
In plain English
A high-severity path traversal in poetry from python-poetry. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 22% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | poetry | no fix listed | DEBIAN-CVE-2026-41140 |
| Debian:13 | poetry | 2.1.2+dfsg-1 | DEBIAN-CVE-2026-41140 |
| Debian:14 | poetry | 2.1.2+dfsg-1 | DEBIAN-CVE-2026-41140 |
| PyPI | poetry | 2.3.4 | GHSA-73h3-mf4w-8647 |
| PyPI | poetry | 2.3.4 | PYSEC-2026-2890 |
| Ubuntu:22.04:LTS | poetry | no fix listed | UBUNTU-CVE-2026-41140 |
| Ubuntu:24.04:LTS | poetry | no fix listed | UBUNTU-CVE-2026-41140 |
| Ubuntu:25.10 | poetry | no fix listed | UBUNTU-CVE-2026-41140 |
| Ubuntu:26.04:LTS | poetry | no fix listed | UBUNTU-CVE-2026-41140 |
| Ubuntu:26.10 | poetry | no fix listed | UBUNTU-CVE-2026-41140 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| python-poetry | poetry | < 2.3.4 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H
References
- https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647 x_refsource_CONFIRM
- https://access.redhat.com/security/cve/CVE-2026-41140 vdb-entry, x_refsource_REDHAT
- RHBZ#2461604 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:24866 vendor-advisory, x_refsource_REDHAT