CVE-2026-41140: Poetry · Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4
Affects poetrySource GCVE Database
Not known to be exploited · CVSS 0.6 Low : upgrade to 2.3.4 when convenient.
Data as of 1 Dec 2026, 20:04 UTC
Contested
Scorers differ by 2 or more points| CNA (GitHub_M) | CVSS 4.0 | 0.6 |
|---|---|---|
| ADP (redhat-SADP) | CVSS 3.1 | 8.7 |
- Patch
- Available – fixed in 2.3.4
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:UExploitation evidence
Disclosed: evidence found.
CVE published 24 Apr 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade poetry to 2.3.4.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Homebrewpoetrypkg:brew/poetryOther threats | Affected
| Fixed in
|
PyPIpoetrypkg:pypi/poetryOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A fix is available in Poetry version 2.3.4. Users should upgrade to version 2.3.4 or later to remediate this vulnerability. Red Hat has issued security advisories and patches addressing this issue. No other mitigations are noted or recommended by the vendor. Since patching is straightforward and effective, upgrading is the primary recommended action.
Description
Poetry, a Python dependency manager, had a path traversal vulnerability in its extractall() function prior to version 2.3.4. This flaw affected Poetry running on Python versions 3.10.0 through 3.10.12 and 3.11.0 through 3.11.4, where tarfile.data_filter is unavailable. The vulnerability allowed crafted malicious packages to write files outside the intended extraction directory, potentially overwriting critical system files. This issue is fixed in Poetry version 2.3.4. The CVSS score is low (2.3), reflecting limited impact under typical conditions. Red Hat has issued advisories and patches addressing this vulnerability.
References
- lists.debian.org/debian-lts-announce/2026/11/msg00084.html (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json (opens in a new tab)
- access.redhat.com/errata/RHSA-2026:24866 (opens in a new tab)
- access.redhat.com/security/cve/CVE-2026-41140 (opens in a new tab)
- github.com/CVEProject/cvelistV5/tree/main/cves/2026/41xxx/CVE-2026-41140.json (opens in a new tab)
- github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-41140 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2461604 (opens in a new tab)