Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- Present
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Partial Red Hat: 1 fixed, 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| python-poetry | poetry | before 2.3.4 | 2.3.4 | Patch available | CNA |
| — | poetry (PyPI) | before 2.3.4 | 2.3.4 | Patch available | GHSA-73h3-mf4w-8647 |
- poetry Vendorpython-poetry Affected before 2.3.4 Fixed in 2.3.4 Patch available CNA
- poetry (PyPI) Vendor— Affected before 2.3.4 Fixed in 2.3.4 Patch available GHSA-73h3-mf4w-8647
CPE names Threatist (inferred) · 1
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:python-poetry:poetry:*:*:*:*:*:*:*:* | — | — | python-poetry |
- cpe:2.3:a:python-poetry:poetry:*:*:*:*:*:*:*:* Versions — — ·python-poetry
Remediation
- Fix · CNA poetry (python-poetry) Fixed in 2.3.4
- Fix · GHSA-73h3-mf4w-8647 poetry (PyPI) Fixed in 2.3.4 Advisory →
Red Hat 1 advisory
- RHSA-2026:24866 Released 2026-06-09 · Red Hat rating CriticalRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/controller-rhel9, registry.redhat.io/ansible-automation-platform-26/eda-controller-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-supported-rhel9 +7
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:24866 |
Not affected: 5 products
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.6
- Red Hat OpenShift AI (RHOAI)
- Red Hat OpenShift Container Platform 4
- Red Hat Satellite 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-41140
- 2026-10-03 Alias added: GHSA-73h3-mf4w-8647
References
More python-poetry vulnerabilities
- TI-2022-16492 Poetry Argument Injection vulnerability can lead to local Code Execution CVSS 3.1HIGH 7.3
- TI-2022-20946 Exponential ReDoS in cleo leads to denial of service CVSS 3.1HIGH 7.5
- TI-2026-26838 Poetry Has Wheel Path Traversal Which Can Lead to Arbitrary File Write CVSS 4.0HIGH 7.1
- TI-2022-09621 Poetry v1.1.9 and below was discovered to contain an untrusted search path which causes… CVSS 3.1CRITICAL 9.8
- TI-2022-16493 Poetry's Untrusted Search Path can lead to Local Code Execution on Windows CVSS 3.1HIGH 7.3
Sources
- CVE-2026-41140 · CVE Program
- CVE-2026-41140 · NVD
- FIRST EPSS
- GHSA-73h3-mf4w-8647 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-41140 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences