Skip to main content
VulnerabilityPublished Updated

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

0
Compare
Authoritative record:CVE-2026-41140· Low 0.6

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

CVSS 4.0 base score
0.6Low
How severe the flaw is on the 0–10 CVSS scale.

Contested

Scorers differ by 2 or more points
CVSS scores by source
CNA (GitHub_M)CVSS 4.00.6
ADP (redhat-SADP)CVSS 3.18.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:U

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 24 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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.

Affected software

ProductAffectedFixed in
Homebrewpoetrypkg:brew/poetryOther threatsAffected
  • >=1.0.0 <2.3.4
Fixed in
  • 2.3.4
PyPIpoetrypkg:pypi/poetryOther threatsAffected
  • <2.3.4
Fixed in
  • 2.3.4

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

Community reviews

Loading reviews…