{"id":"CVE-2026-41140","published":"2026-04-24T17:10:33Z","modified":"2026-07-15T00:59:56Z","title":"Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4","vendor":"python-poetry","product":"poetry","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":0.6,"severity":"LOW","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00305,"percentile":0.23706,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-41140","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461604","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:24866","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":5.2,"factors":[{"name":"EPSS percentile","points":4.74},{"name":"CVSS severity","points":0.42}]},"vendorSlug":"python-poetry","affectedVersions":[{"vendor":"python-poetry","product":"poetry","versions":["< 2.3.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-24T18:02:54.197900Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"poetry","vulnerableRanges":["<2.3.4"],"patched":["2.3.4"],"from":["GHSA-73h3-mf4w-8647","PYSEC-2026-2890"],"provenance":"source"}],"summary":{"text":"Poetry, the Python dependency manager, has a path traversal flaw in its extractall() function (src/poetry/utils/helpers.py), which extracts sdist tarballs without path traversal protection on affected Python versions 3.10.0–3.10.12 and 3.11.0–3.11.4 where tarfile.data_filter is unavailable. An attacker could write files outside the intended extraction directory by supplying a crafted sdist tarball, and exploitation requires that a user is induced to interact with the malicious package, with no network access or authentication needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:22:30Z"},"euvd":{"id":"EUVD-2026-25578","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2022-36069","published":"2022-09-07","fixed":"1.1.9","kev":false},{"cve":"CVE-2022-36070","published":"2022-09-07","fixed":"1.1.9","kev":false},{"cve":"CVE-2026-34591","published":"2026-04-02","fixed":"2.3.3","kev":false,"link":{"from":"CVE-2026-34591","to":"CVE-2026-41140","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:poetry","fromFixed":"2.3.3","toFixed":"2.3.4","daysApart":22},{"kind":"similar","provenance":"machine","score":0.39,"basis":"same product + CWE + description similarity"}]}},{"cve":"CVE-2026-41140","published":"2026-04-24","fixed":"2.3.4","kev":false}],"package":"PyPI:poetry"}}