{"id":"CVE-2026-41140","aliases":["AZL-84035","DEBIAN-CVE-2026-41140","GHSA-73h3-mf4w-8647","PYSEC-2026-2890","UBUNTU-CVE-2026-41140"],"summary":"Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4","published_at":"2026-04-22T14:35:30Z","modified_at":"2026-11-19T05:26:20Z","products":[],"rating":{"severity":"high","score":8.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","attack_path":"internet_authenticated","user_interaction":true,"malicious":false,"red_hat":"Important","vendor_ratings":[{"source":"SUSE","rating":"important"},{"source":"Ubuntu","rating":"medium"},{"source":"Red Hat","rating":"Important"}]},"fix_available":false,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.002940000034868717,"percentile":0.2237599939107895,"date":"2026-11-19T00:00:00Z"},"priority":9.2,"details":"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_stack":[],"affected_other":[{"ecosystem":"Azure Linux:3","package":"poetry","purl":"pkg:rpm/azure-linux/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.5-2"}]}],"fixed":["1.8.5-2"],"provider":"osv","source":"AZL-84035","relation":"self"},{"ecosystem":"CVE","package":"python-poetry/poetry","versions":["< 2.3.4"],"provider":"cvelistv5","source":"CVE-2026-41140","relation":"self"},{"ecosystem":"Debian:12","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.2+dfsg-3","1.3.2+dfsg-4","1.3.2+dfsg-5","1.5.1+dfsg-1","1.5.1+dfsg-2","1.5.1+dfsg-3","1.5.1+dfsg-4","1.6.1+dfsg-1","1.6.1+dfsg-2","1.7.1+dfsg-1","1.8.0.dev0~git20240220.cff4d7d5+dfsg-1","1.8.0.dev0~git20240220.cff4d7d5+dfsg-2","1.8.2+dfsg-1","1.8.3+dfsg-1","1.8.3+dfsg-2","1.8.3+dfsg-3","1.8.3+dfsg-4","2.0.1+dfsg-1","2.1.1+dfsg-1","2.1.1+dfsg-2","2.1.1+dfsg-3","2.1.2+dfsg-1","2.2.1+dfsg-1","2.2.1+dfsg-2","2.2.1+dfsg-3","2.3.2+dfsg-1","2.3.2+dfsg-2","2.3.2+dfsg-3","2.3.4-0.1","2.3.4-1","2.3.4-2","2.3.4-3"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"},{"ecosystem":"Debian:13","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2+dfsg-1"}]}],"fixed":["2.1.2+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"},{"ecosystem":"Debian:14","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2+dfsg-1"}]}],"fixed":["2.1.2+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"},{"ecosystem":"PyPI","package":"poetry","purl":"pkg:pypi/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.4"}]}],"versions":["0.1.0","0.10.0","0.10.0a0","0.10.0a1","0.10.0a2","0.10.0a3","0.10.1","0.10.2","0.10.3","0.11.0","0.11.0a0","0.11.0a1","0.11.0a2","0.11.0a3","0.11.0a4","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.12.0a0","0.12.0a1","0.12.0a2","0.12.0a3","0.12.0a4","0.12.0a5","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.2","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.2.0","0.3.0","0.4.0","0.4.0.post1","0.4.1","0.4.2","0.5.0","0.5.0b1","0.5.0b2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.3b1","0.6.3b2","0.6.3b3","0.6.3b4","0.6.3b5","0.6.3b6","0.6.3b7","0.6.4","0.6.4b1","0.6.5","0.7.0","0.7.0b1","0.7.0b2","0.7.0b3","0.7.0b4","0.7.1","0.8.0","0.8.0a0","0.8.0a1","0.8.0a2","0.8.0a3","0.8.0a4","0.8.1","0.8.1a0","0.8.2","0.8.3","0.8.4","0.8.5","0.8.5a0","0.8.6","0.9.0","0.9.0a0","0.9.0a1","0.9.0a2","0.9.0a3","0.9.1","1.0.0","1.0.0a0","1.0.0a1","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0b1","1.0.0b2","1.0.0b3","1.0.0b4","1.0.0b5","1.0.0b6","1.0.0b7","1.0.0b8","1.0.0b9","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.0a1","1.1.0a2","1.1.0a3","1.1.0b1","1.1.0b2","1.1.0b3","1.1.0b4","1.1.0rc1","1.1.1","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.15","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0","1.2.0a1","1.2.0a2","1.2.0b1","1.2.0b2","1.2.0b3","1.2.0rc1","1.2.0rc2","1.2.1","1.2.2","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.3.0","2.3.1","2.3.2","2.3.3"],"fixed":["2.3.4"],"provider":"osv","source":"GHSA-73h3-mf4w-8647","relation":"self"},{"ecosystem":"PyPI","package":"poetry","purl":"pkg:pypi/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.4"}]}],"versions":["0.1.0","0.10.0","0.10.0a0","0.10.0a1","0.10.0a2","0.10.0a3","0.10.1","0.10.2","0.10.3","0.11.0","0.11.0a0","0.11.0a1","0.11.0a2","0.11.0a3","0.11.0a4","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.12.0a0","0.12.0a1","0.12.0a2","0.12.0a3","0.12.0a4","0.12.0a5","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.2","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.2.0","0.3.0","0.4.0","0.4.0.post1","0.4.1","0.4.2","0.5.0","0.5.0b1","0.5.0b2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.3b1","0.6.3b2","0.6.3b3","0.6.3b4","0.6.3b5","0.6.3b6","0.6.3b7","0.6.4","0.6.4b1","0.6.5","0.7.0","0.7.0b1","0.7.0b2","0.7.0b3","0.7.0b4","0.7.1","0.8.0","0.8.0a0","0.8.0a1","0.8.0a2","0.8.0a3","0.8.0a4","0.8.1","0.8.1a0","0.8.2","0.8.3","0.8.4","0.8.5","0.8.5a0","0.8.6","0.9.0","0.9.0a0","0.9.0a1","0.9.0a2","0.9.0a3","0.9.1","1.0.0","1.0.0a0","1.0.0a1","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0b1","1.0.0b2","1.0.0b3","1.0.0b4","1.0.0b5","1.0.0b6","1.0.0b7","1.0.0b8","1.0.0b9","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.0a1","1.1.0a2","1.1.0a3","1.1.0b1","1.1.0b2","1.1.0b3","1.1.0b4","1.1.0rc1","1.1.1","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.15","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0","1.2.0a1","1.2.0a2","1.2.0b1","1.2.0b2","1.2.0b3","1.2.0rc1","1.2.0rc2","1.2.1","1.2.2","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.3.0","2.3.1","2.3.2","2.3.3"],"fixed":["2.3.4"],"provider":"osv","source":"PYSEC-2026-2890","relation":"self"},{"ecosystem":"Ubuntu:22.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.11+dfsg-3","1.1.12+dfsg-1","1.1.12+dfsg-1ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.1+dfsg-2","1.7.1+dfsg-1","1.8.2+dfsg-1ubuntu2"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1+dfsg-3","2.1.2+dfsg-1"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2+dfsg-1","2.3.2+dfsg-3"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2+dfsg-3","2.3.4-0.1","2.3.4-1","2.3.4-2"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"}],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS","cpe":"cpe:/o:suse:sle_hpc-ltss:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS","cpe":"cpe:/o:suse:sle_hpc-ltss:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP7","cpe":"cpe:/o:suse:sle_hpc:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP5","cpe":"cpe:/o:suse:sles:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server Teradata 15 SP4","cpe":"cpe:/o:suse:sles_teradata:15:sp4","status":"not_affected","packages":["python-poetry-core"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP5","cpe":"cpe:/o:suse:sles_sap:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server-sap","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server-sap","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"not_affected","packages":["python-poetry","python-poetry-core","python311-poetry","python311-poetry-core"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"openSUSE Leap 16.0","status":"not_affected","packages":["python-poetry-core"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-26/controller-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-26/eda-controller-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","status":"fixed","packages":["ansible-automation-platform-26/hub-rhel9","ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:24866"],"provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","status":"not_affected","packages":["ansible-automation-platform-26/aap-must-gather-rhel9","ansible-automation-platform-26/ansible-builder-rhel9","ansible-automation-platform-26/ansible-dev-tools-rhel9","ansible-automation-platform-26/controller-rhel9","ansible-automation-platform-26/controller-rhel9-operator","ansible-automation-platform-26/de-minimal-rhel9","ansible-automation-platform-26/de-supported-rhel9","ansible-automation-platform-26/eda-controller-rhel9","ansible-automation-platform-26/eda-controller-rhel9-operator","ansible-automation-platform-26/eda-controller-ui-rhel9","ansible-automation-platform-26/ee-minimal-rhel9","ansible-automation-platform-26/ee-supported-rhel9","ansible-automation-platform-26/gateway-proxy-rhel9","ansible-automation-platform-26/gateway-rhel9","ansible-automation-platform-26/gateway-rhel9-operator","ansible-automation-platform-26/hub-rhel9-operator","ansible-automation-platform-26/hub-web-rhel9","ansible-automation-platform-26/lightspeed-rhel9","ansible-automation-platform-26/lightspeed-rhel9-operator","ansible-automation-platform-26/mcp-tools-rhel9","ansible-automation-platform-26/platform-resource-rhel9-operator","ansible-automation-platform-26/platform-resource-runner-rhel9","ansible-automation-platform-26/receptor-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9","ansible-automation-platform-tech-preview/metrics-service-rhel9"],"package_count":27,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["poetry"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Satellite 6","cpe":"cpe:/a:redhat:satellite:6","status":"not_affected","packages":["python-poetry"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41140"}],"records":[{"provider":"cvelistv5","source_id":"CVE-2026-41140","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2026-41140","license":"CC-BY-4.0","published_at":"2026-04-24T17:10:33.869Z","modified_at":"2026-07-15T00:59:56.835Z","summary":"Poetry: Path traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"CVE-2026-41140"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","source":"redhat-SADP:CVE-2026-41140"}],"affected":[{"ecosystem":"CVE","package":"python-poetry/poetry","versions":["< 2.3.4"],"provider":"cvelistv5","source":"CVE-2026-41140","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"}]},{"provider":"csaf-suse","source_id":"CVE-2026-41140","relation":"self","url":"https://www.suse.com/security/cve/CVE-2026-41140/","license":"TLP:CLEAR, mirroring permitted","published_at":"2026-04-30T02:25:07Z","modified_at":"2026-08-06T01:22:40Z","summary":"SUSE CVE CVE-2026-41140","details":"SUSE CVE-2026-41140\n\nPoetry 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.","severity":[{"type":"SUSE","score":"important","source":"CVE-2026-41140"}],"affected":[],"product_status":[{"vendor":"SUSE","product":"SUSE Linux Enterprise Desktop 15 SP7","cpe":"cpe:/o:suse:sled:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS","cpe":"cpe:/o:suse:sle_hpc-ltss:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS","cpe":"cpe:/o:suse:sle_hpc-ltss:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise High Performance Computing 15 SP7","cpe":"cpe:/o:suse:sle_hpc:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Module for Python 3 15 SP7","cpe":"cpe:/o:suse:sle-module-python3:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4","cpe":"cpe:/o:suse:sles:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP4-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP5","cpe":"cpe:/o:suse:sles:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP5-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6","cpe":"cpe:/o:suse:sles:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP6-LTSS","cpe":"cpe:/o:suse:sles-ltss:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 15 SP7","cpe":"cpe:/o:suse:sles:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server Teradata 15 SP4","cpe":"cpe:/o:suse:sles_teradata:15:sp4","status":"not_affected","packages":["python-poetry-core"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP4","cpe":"cpe:/o:suse:sles_sap:15:sp4","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP5","cpe":"cpe:/o:suse:sles_sap:15:sp5","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP6","cpe":"cpe:/o:suse:sles_sap:15:sp6","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP Applications 15 SP7","cpe":"cpe:/o:suse:sles_sap:15:sp7","status":"not_affected","packages":["python-poetry-core","python311-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.0","cpe":"cpe:/o:suse:sles:16:16.0:server-sap","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"SUSE Linux Enterprise Server for SAP applications 16.1","cpe":"cpe:/o:suse:sles:16:16.1:server-sap","status":"not_affected","packages":["python-poetry-core","python313-poetry-core"],"package_count":2,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"openSUSE Leap 15.6","cpe":"cpe:/o:opensuse:leap:15.6","status":"not_affected","packages":["python-poetry","python-poetry-core","python311-poetry","python311-poetry-core"],"package_count":4,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"},{"vendor":"SUSE","product":"openSUSE Leap 16.0","status":"not_affected","packages":["python-poetry-core"],"package_count":1,"fixed":[],"advisories":[],"provider":"csaf-suse","source":"CVE-2026-41140"}],"references":[{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-41140"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1263184"}]},{"provider":"osv","source_id":"AZL-84035","relation":"self","url":"https://osv.dev/vulnerability/AZL-84035","license":"MIT","published_at":"2026-04-24T18:16:28Z","modified_at":"2026-11-19T05:26:20Z","summary":"CVE-2026-41140 affecting package poetry for versions less than 1.8.5-2","details":"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.","severity":[],"affected":[{"ecosystem":"Azure Linux:3","package":"poetry","purl":"pkg:rpm/azure-linux/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.5-2"}]}],"fixed":["1.8.5-2"],"provider":"osv","source":"AZL-84035","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41140"}]},{"provider":"osv","source_id":"DEBIAN-CVE-2026-41140","relation":"self","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-41140","published_at":"2026-04-24T18:16:28.613Z","modified_at":"2026-10-27T10:01:17.807367Z","details":"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.","severity":[{"type":"CVSS_V4","score":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","source":"DEBIAN-CVE-2026-41140"}],"affected":[{"ecosystem":"Debian:12","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=bookworm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.2+dfsg-3","1.3.2+dfsg-4","1.3.2+dfsg-5","1.5.1+dfsg-1","1.5.1+dfsg-2","1.5.1+dfsg-3","1.5.1+dfsg-4","1.6.1+dfsg-1","1.6.1+dfsg-2","1.7.1+dfsg-1","1.8.0.dev0~git20240220.cff4d7d5+dfsg-1","1.8.0.dev0~git20240220.cff4d7d5+dfsg-2","1.8.2+dfsg-1","1.8.3+dfsg-1","1.8.3+dfsg-2","1.8.3+dfsg-3","1.8.3+dfsg-4","2.0.1+dfsg-1","2.1.1+dfsg-1","2.1.1+dfsg-2","2.1.1+dfsg-3","2.1.2+dfsg-1","2.2.1+dfsg-1","2.2.1+dfsg-2","2.2.1+dfsg-3","2.3.2+dfsg-1","2.3.2+dfsg-2","2.3.2+dfsg-3","2.3.4-0.1","2.3.4-1","2.3.4-2","2.3.4-3"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"},{"ecosystem":"Debian:13","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=trixie","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2+dfsg-1"}]}],"fixed":["2.1.2+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"},{"ecosystem":"Debian:14","package":"poetry","purl":"pkg:deb/debian/poetry?arch=source&distro=forky","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.1.2+dfsg-1"}]}],"fixed":["2.1.2+dfsg-1"],"provider":"osv","source":"DEBIAN-CVE-2026-41140","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-41140"}]},{"provider":"osv","source_id":"GHSA-73h3-mf4w-8647","relation":"self","url":"https://osv.dev/vulnerability/GHSA-73h3-mf4w-8647","license":"CC-BY-4.0","published_at":"2026-04-22T14:35:30Z","modified_at":"2026-07-13T16:42:25.945183Z","summary":"Poetry has Path Traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4","details":"### Summary\n\nThe `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.\n\n### Impact\n\nArbitrary file write (path traversal) from untrusted sdist content.\n\n**In practice, the impact is low** because an attacker who exploits this vulnerability can as well include arbitrary code in a `setup.py`, which will be executed when the sdist is built after tar extraction. In other words, a malicious sdist can write arbitrary files by design. However, since it is unexpected and not by design that the file write already happens during tar extraction, this is still considered a vulnerability.\n\nOn Python 3.11.2 (Debian Bookworm default, directly tested), a crafted sdist with `../../` tar member paths writes files outside the intended extraction directory. The traversal occurs during metadata resolution (`poetry add --lock`), before the build backend is run.\n\nAffected Environments: \n- **Python 3.10.0 through 3.10.12** (inclusive): `tarfile.data_filter` absent or broken\n- **Python 3.11.0 through 3.11.4** (inclusive): `tarfile.data_filter` absent or broken\n- **Debian Bookworm**: Python 3.11.2 (default)\n- **Ubuntu 22.04 LTS**: Python 3.10.6 (default)\n\n### Patches\n\nVersions 2.3.4 and newer of Poetry ensure that paths are inside the target directory.\n\n### Root Cause\n\nFile: `src/poetry/utils/helpers.py`, lines 410-426:\n\n```python\ndef extractall(source: Path, dest: Path, zip: bool) -> None:\n    \"\"\"Extract all members from either a zip or tar archive.\"\"\"\n    if zip:\n        with zipfile.ZipFile(source) as archive:\n            archive.extractall(dest)\n    else:\n        broken_tarfile_filter = {(3, 9, 17), (3, 10, 12), (3, 11, 4)}\n        with tarfile.open(source) as archive:\n            if (\n                hasattr(tarfile, \"data_filter\")\n                and sys.version_info[:3] not in broken_tarfile_filter\n            ):\n                archive.extractall(dest, filter=\"data\")\n            else:\n                archive.extractall(dest)  # <-- NO FILTER: path traversal\n```\n\nOn Python versions without a working `tarfile.data_filter`, the `else` branch at line 426 calls `tarfile.extractall()` without any filter or path validation. This enables three attack vectors:\n\n1. **Direct path traversal**: Tar members with `../../` path components write files outside the extraction directory.\n2. **Symlink traversal**: A symlink member pointing outside dest, followed by a file written through that symlink, escapes the boundary.\n3. **Hardlink attacks**: Hardlink members can read arbitrary files (same inode) or overwrite targets outside dest.\n\n#### Call Sites\n\nThis function is called from two locations:\n\n1. **`src/poetry/installation/chef.py:104`** (`_prepare_sdist`): During `poetry install` / `poetry add` when building a package from sdist. Only triggered when the executor is enabled (actual installation).\n\n2. **`src/poetry/inspection/info.py:322`** (`_from_sdist_file`): During dependency resolution (`poetry lock` / `poetry add`). This path is reached when the sdist's `PKG-INFO` lacks `Requires-Dist` metadata, forcing Poetry to extract the archive (and afterwards build the package).\n\n### Suggested Fix\n\nApply path validation in the `else` branch, covering direct traversal, symlinks, and hardlinks:\n\n```python\ndef extractall(source: Path, dest: Path, zip: bool) -> None:\n    \"\"\"Extract all members from either a zip or tar archive.\"\"\"\n    if zip:\n        with zipfile.ZipFile(source) as archive:\n            archive.extractall(dest)\n    else:\n        broken_tarfile_filter = {(3, 9, 17), (3, 10, 12), (3, 11, 4)}\n        with tarfile.open(source) as archive:\n            if (\n                hasattr(tarfile, \"data_filter\")\n                and sys.version_info[:3] not in broken_tarfile_filter\n            ):\n                archive.extractall(dest, filter=\"data\")\n            else:\n                # Validate all member paths before extraction\n                dest_resolved = dest.resolve()\n                safe_members = []\n                for member in archive.getmembers():\n                    member_path = (dest_resolved / member.name).resolve()\n                    if not member_path.is_relative_to(dest_resolved):\n                        raise ValueError(\n                            f\"Refusing to extract {member.name}: \"\n                            f\"would write outside {dest}\"\n                        )\n                    if member.issym():\n                        link_target = (member_path.parent / member.linkname).resolve()\n                        if not link_target.is_relative_to(dest_resolved):\n                            raise ValueError(\n                                f\"Refusing symlink {member.name}: \"\n                                f\"target {member.linkname} outside {dest}\"\n                            )\n                    elif member.islnk():\n                        link_target = (dest_resolved / member.linkname).resolve()\n                        if not link_target.is_relative_to(dest_resolved):\n                            raise ValueError(\n                                f\"Refusing hardlink {member.name}: \"\n                                f\"target {member.linkname} outside {dest}\"\n                            )\n                    safe_members.append(member)\n                archive.extractall(dest, members=safe_members)\n```","severity":[{"type":"CVSS_V4","score":"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","source":"GHSA-73h3-mf4w-8647"}],"affected":[{"ecosystem":"PyPI","package":"poetry","purl":"pkg:pypi/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.4"}]}],"versions":["0.1.0","0.10.0","0.10.0a0","0.10.0a1","0.10.0a2","0.10.0a3","0.10.1","0.10.2","0.10.3","0.11.0","0.11.0a0","0.11.0a1","0.11.0a2","0.11.0a3","0.11.0a4","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.12.0a0","0.12.0a1","0.12.0a2","0.12.0a3","0.12.0a4","0.12.0a5","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.2","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.2.0","0.3.0","0.4.0","0.4.0.post1","0.4.1","0.4.2","0.5.0","0.5.0b1","0.5.0b2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.3b1","0.6.3b2","0.6.3b3","0.6.3b4","0.6.3b5","0.6.3b6","0.6.3b7","0.6.4","0.6.4b1","0.6.5","0.7.0","0.7.0b1","0.7.0b2","0.7.0b3","0.7.0b4","0.7.1","0.8.0","0.8.0a0","0.8.0a1","0.8.0a2","0.8.0a3","0.8.0a4","0.8.1","0.8.1a0","0.8.2","0.8.3","0.8.4","0.8.5","0.8.5a0","0.8.6","0.9.0","0.9.0a0","0.9.0a1","0.9.0a2","0.9.0a3","0.9.1","1.0.0","1.0.0a0","1.0.0a1","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0b1","1.0.0b2","1.0.0b3","1.0.0b4","1.0.0b5","1.0.0b6","1.0.0b7","1.0.0b8","1.0.0b9","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.0a1","1.1.0a2","1.1.0a3","1.1.0b1","1.1.0b2","1.1.0b3","1.1.0b4","1.1.0rc1","1.1.1","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.15","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0","1.2.0a1","1.2.0a2","1.2.0b1","1.2.0b2","1.2.0b3","1.2.0rc1","1.2.0rc2","1.2.1","1.2.2","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.3.0","2.3.1","2.3.2","2.3.3"],"fixed":["2.3.4"],"provider":"osv","source":"GHSA-73h3-mf4w-8647","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41140"},{"type":"PACKAGE","url":"https://github.com/python-poetry/poetry"},{"type":"WEB","url":"https://github.com/python-poetry/poetry/releases/tag/2.3.4"}]},{"provider":"osv","source_id":"PYSEC-2026-2890","relation":"self","url":"https://osv.dev/vulnerability/PYSEC-2026-2890","license":"CC-BY-4.0","published_at":"2026-07-13T15:02:52.466566Z","modified_at":"2026-07-13T16:32:58.805584Z","summary":"Poetry has Path Traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4","details":"### Summary\n\nThe `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.\n\n### Impact\n\nArbitrary file write (path traversal) from untrusted sdist content.\n\n**In practice, the impact is low** because an attacker who exploits this vulnerability can as well include arbitrary code in a `setup.py`, which will be executed when the sdist is built after tar extraction. In other words, a malicious sdist can write arbitrary files by design. However, since it is unexpected and not by design that the file write already happens during tar extraction, this is still considered a vulnerability.\n\nOn Python 3.11.2 (Debian Bookworm default, directly tested), a crafted sdist with `../../` tar member paths writes files outside the intended extraction directory. The traversal occurs during metadata resolution (`poetry add --lock`), before the build backend is run.\n\nAffected Environments: \n- **Python 3.10.0 through 3.10.12** (inclusive): `tarfile.data_filter` absent or broken\n- **Python 3.11.0 through 3.11.4** (inclusive): `tarfile.data_filter` absent or broken\n- **Debian Bookworm**: Python 3.11.2 (default)\n- **Ubuntu 22.04 LTS**: Python 3.10.6 (default)\n\n### Patches\n\nVersions 2.3.4 and newer of Poetry ensure that paths are inside the target directory.\n\n### Root Cause\n\nFile: `src/poetry/utils/helpers.py`, lines 410-426:\n\n```python\ndef extractall(source: Path, dest: Path, zip: bool) -> None:\n    \"\"\"Extract all members from either a zip or tar archive.\"\"\"\n    if zip:\n        with zipfile.ZipFile(source) as archive:\n            archive.extractall(dest)\n    else:\n        broken_tarfile_filter = {(3, 9, 17), (3, 10, 12), (3, 11, 4)}\n        with tarfile.open(source) as archive:\n            if (\n                hasattr(tarfile, \"data_filter\")\n                and sys.version_info[:3] not in broken_tarfile_filter\n            ):\n                archive.extractall(dest, filter=\"data\")\n            else:\n                archive.extractall(dest)  # <-- NO FILTER: path traversal\n```\n\nOn Python versions without a working `tarfile.data_filter`, the `else` branch at line 426 calls `tarfile.extractall()` without any filter or path validation. This enables three attack vectors:\n\n1. **Direct path traversal**: Tar members with `../../` path components write files outside the extraction directory.\n2. **Symlink traversal**: A symlink member pointing outside dest, followed by a file written through that symlink, escapes the boundary.\n3. **Hardlink attacks**: Hardlink members can read arbitrary files (same inode) or overwrite targets outside dest.\n\n#### Call Sites\n\nThis function is called from two locations:\n\n1. **`src/poetry/installation/chef.py:104`** (`_prepare_sdist`): During `poetry install` / `poetry add` when building a package from sdist. Only triggered when the executor is enabled (actual installation).\n\n2. **`src/poetry/inspection/info.py:322`** (`_from_sdist_file`): During dependency resolution (`poetry lock` / `poetry add`). This path is reached when the sdist's `PKG-INFO` lacks `Requires-Dist` metadata, forcing Poetry to extract the archive (and afterwards build the package).\n\n### Suggested Fix\n\nApply path validation in the `else` branch, covering direct traversal, symlinks, and hardlinks:\n\n```python\ndef extractall(source: Path, dest: Path, zip: bool) -> None:\n    \"\"\"Extract all members from either a zip or tar archive.\"\"\"\n    if zip:\n        with zipfile.ZipFile(source) as archive:\n            archive.extractall(dest)\n    else:\n        broken_tarfile_filter = {(3, 9, 17), (3, 10, 12), (3, 11, 4)}\n        with tarfile.open(source) as archive:\n            if (\n                hasattr(tarfile, \"data_filter\")\n                and sys.version_info[:3] not in broken_tarfile_filter\n            ):\n                archive.extractall(dest, filter=\"data\")\n            else:\n                # Validate all member paths before extraction\n                dest_resolved = dest.resolve()\n                safe_members = []\n                for member in archive.getmembers():\n                    member_path = (dest_resolved / member.name).resolve()\n                    if not member_path.is_relative_to(dest_resolved):\n                        raise ValueError(\n                            f\"Refusing to extract {member.name}: \"\n                            f\"would write outside {dest}\"\n                        )\n                    if member.issym():\n                        link_target = (member_path.parent / member.linkname).resolve()\n                        if not link_target.is_relative_to(dest_resolved):\n                            raise ValueError(\n                                f\"Refusing symlink {member.name}: \"\n                                f\"target {member.linkname} outside {dest}\"\n                            )\n                    elif member.islnk():\n                        link_target = (dest_resolved / member.linkname).resolve()\n                        if not link_target.is_relative_to(dest_resolved):\n                            raise ValueError(\n                                f\"Refusing hardlink {member.name}: \"\n                                f\"target {member.linkname} outside {dest}\"\n                            )\n                    safe_members.append(member)\n                archive.extractall(dest, members=safe_members)\n```","severity":[{"type":"CVSS_V4","score":"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","source":"PYSEC-2026-2890"}],"affected":[{"ecosystem":"PyPI","package":"poetry","purl":"pkg:pypi/poetry","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.3.4"}]}],"versions":["0.1.0","0.10.0","0.10.0a0","0.10.0a1","0.10.0a2","0.10.0a3","0.10.1","0.10.2","0.10.3","0.11.0","0.11.0a0","0.11.0a1","0.11.0a2","0.11.0a3","0.11.0a4","0.11.1","0.11.2","0.11.3","0.11.4","0.11.5","0.12.0","0.12.0a0","0.12.0a1","0.12.0a2","0.12.0a3","0.12.0a4","0.12.0a5","0.12.1","0.12.10","0.12.11","0.12.12","0.12.13","0.12.14","0.12.15","0.12.16","0.12.17","0.12.2","0.12.3","0.12.4","0.12.5","0.12.6","0.12.7","0.12.8","0.12.9","0.2.0","0.3.0","0.4.0","0.4.0.post1","0.4.1","0.4.2","0.5.0","0.5.0b1","0.5.0b2","0.6.0","0.6.1","0.6.2","0.6.3","0.6.3b1","0.6.3b2","0.6.3b3","0.6.3b4","0.6.3b5","0.6.3b6","0.6.3b7","0.6.4","0.6.4b1","0.6.5","0.7.0","0.7.0b1","0.7.0b2","0.7.0b3","0.7.0b4","0.7.1","0.8.0","0.8.0a0","0.8.0a1","0.8.0a2","0.8.0a3","0.8.0a4","0.8.1","0.8.1a0","0.8.2","0.8.3","0.8.4","0.8.5","0.8.5a0","0.8.6","0.9.0","0.9.0a0","0.9.0a1","0.9.0a2","0.9.0a3","0.9.1","1.0.0","1.0.0a0","1.0.0a1","1.0.0a2","1.0.0a3","1.0.0a4","1.0.0a5","1.0.0b1","1.0.0b2","1.0.0b3","1.0.0b4","1.0.0b5","1.0.0b6","1.0.0b7","1.0.0b8","1.0.0b9","1.0.1","1.0.10","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6","1.0.7","1.0.8","1.0.9","1.1.0","1.1.0a1","1.1.0a2","1.1.0a3","1.1.0b1","1.1.0b2","1.1.0b3","1.1.0b4","1.1.0rc1","1.1.1","1.1.10","1.1.11","1.1.12","1.1.13","1.1.14","1.1.15","1.1.2","1.1.3","1.1.4","1.1.5","1.1.6","1.1.7","1.1.8","1.1.9","1.2.0","1.2.0a1","1.2.0a2","1.2.0b1","1.2.0b2","1.2.0b3","1.2.0rc1","1.2.0rc2","1.2.1","1.2.2","1.3.0","1.3.1","1.3.2","1.4.0","1.4.1","1.4.2","1.5.0","1.5.1","1.6.0","1.6.1","1.7.0","1.7.1","1.8.0","1.8.1","1.8.2","1.8.3","1.8.4","1.8.5","2.0.0","2.0.1","2.1.0","2.1.1","2.1.2","2.1.3","2.1.4","2.2.0","2.2.1","2.3.0","2.3.1","2.3.2","2.3.3"],"fixed":["2.3.4"],"provider":"osv","source":"PYSEC-2026-2890","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41140"},{"type":"PACKAGE","url":"https://github.com/python-poetry/poetry"},{"type":"WEB","url":"https://github.com/python-poetry/poetry/releases/tag/2.3.4"},{"type":"PACKAGE","url":"https://pypi.org/project/poetry"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-73h3-mf4w-8647"}]},{"provider":"osv","source_id":"UBUNTU-CVE-2026-41140","relation":"self","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-41140","license":"CC-BY-SA-4.0","published_at":"2026-04-24T18:16:00Z","modified_at":"2026-10-17T12:58:14.482329Z","details":"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.","severity":[{"type":"CVSS_V4","score":"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","source":"UBUNTU-CVE-2026-41140"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","source":"UBUNTU-CVE-2026-41140"},{"type":"Ubuntu","score":"medium","source":"UBUNTU-CVE-2026-41140"}],"affected":[{"ecosystem":"Ubuntu:22.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=jammy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.11+dfsg-3","1.1.12+dfsg-1","1.1.12+dfsg-1ubuntu1"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:24.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=noble","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.1+dfsg-2","1.7.1+dfsg-1","1.8.2+dfsg-1ubuntu2"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:25.10","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=questing","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.1+dfsg-3","2.1.2+dfsg-1"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:26.04:LTS","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=resolute","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2+dfsg-1","2.3.2+dfsg-3"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"},{"ecosystem":"Ubuntu:26.10","package":"poetry","purl":"pkg:deb/ubuntu/poetry?arch=source&distro=stonking","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.3.2+dfsg-3","2.3.4-0.1","2.3.4-1","2.3.4-2"],"provider":"osv","source":"UBUNTU-CVE-2026-41140","relation":"self"}],"product_status":[],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41140"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41140"},{"type":"REPORT","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"}]},{"provider":"redhat-vex","source_id":"CVE-2026-41140","relation":"self","url":"https://access.redhat.com/security/cve/CVE-2026-41140","license":"CC-BY-4.0","published_at":"2026-04-24T17:10:33.869Z","modified_at":"2026-08-10T11:00:52.758843Z","summary":"poetry: Poetry: Path traversal vulnerability allows arbitrary file write via malicious package extraction","details":"A flaw was found in Poetry, a dependency manager for Python. This vulnerability allows a remote attacker to perform a path traversal attack. By crafting a malicious software package, the `extractall()` function in Poetry can be tricked into writing files to unintended locations on the system. This could lead to the creation or overwrite of critical system files, potentially compromising the integrity of the system.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H","source":"CVE-2026-41140"},{"type":"Red Hat","score":"Important","source":"CVE-2026-41140"}],"affected":[],"product_status":[{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"affected","packages":["ansible-automation-platform-26/controller-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"Affected","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2","cpe":"cpe:/a:redhat:ansible_automation_platform:2","status":"not_affected","packages":["ansible-automation-platform-26/eda-controller-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","status":"fixed","packages":["ansible-automation-platform-26/hub-rhel9","ansible-automation-platform-26/lightspeed-chatbot-rhel9"],"package_count":2,"fixed":[],"advisories":["RHSA-2026:24866"],"provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Ansible Automation Platform 2.6","cpe":"cpe:/a:redhat:ansible_automation_platform:2.6::el9","status":"not_affected","packages":["ansible-automation-platform-26/aap-must-gather-rhel9","ansible-automation-platform-26/ansible-builder-rhel9","ansible-automation-platform-26/ansible-dev-tools-rhel9","ansible-automation-platform-26/controller-rhel9","ansible-automation-platform-26/controller-rhel9-operator","ansible-automation-platform-26/de-minimal-rhel9","ansible-automation-platform-26/de-supported-rhel9","ansible-automation-platform-26/eda-controller-rhel9","ansible-automation-platform-26/eda-controller-rhel9-operator","ansible-automation-platform-26/eda-controller-ui-rhel9","ansible-automation-platform-26/ee-minimal-rhel9","ansible-automation-platform-26/ee-supported-rhel9","ansible-automation-platform-26/gateway-proxy-rhel9","ansible-automation-platform-26/gateway-rhel9","ansible-automation-platform-26/gateway-rhel9-operator","ansible-automation-platform-26/hub-rhel9-operator","ansible-automation-platform-26/hub-web-rhel9","ansible-automation-platform-26/lightspeed-rhel9","ansible-automation-platform-26/lightspeed-rhel9-operator","ansible-automation-platform-26/mcp-tools-rhel9","ansible-automation-platform-26/platform-resource-rhel9-operator","ansible-automation-platform-26/platform-resource-runner-rhel9","ansible-automation-platform-26/receptor-rhel9","ansible-automation-platform-tech-preview/mcp-server-rhel9","ansible-automation-platform-tech-preview/metrics-service-rhel9"],"package_count":27,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-agent-rhel9","rhoai/odh-kserve-controller-rhel9","rhoai/odh-kserve-router-rhel9"],"package_count":3,"fixed":[],"advisories":[],"note":"vulnerable_code_not_in_execute_path","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift AI (RHOAI)","cpe":"cpe:/a:redhat:openshift_ai","status":"not_affected","packages":["rhoai/odh-kserve-storage-initializer-rhel9"],"package_count":1,"fixed":[],"advisories":[],"note":"vulnerable_code_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4","cpe":"cpe:/a:redhat:openshift:4","status":"not_affected","packages":["poetry"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41140"},{"vendor":"Red Hat","product":"Red Hat Satellite 6","cpe":"cpe:/a:redhat:satellite:6","status":"not_affected","packages":["python-poetry"],"package_count":1,"fixed":[],"advisories":[],"note":"component_not_present","provider":"redhat-vex","source":"CVE-2026-41140"}],"references":[{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-41140"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461604"},{"type":"WEB","url":"https://www.cve.org/CVERecord?id=CVE-2026-41140"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41140"},{"type":"WEB","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"}]}],"references":[{"type":"WEB","url":"https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647"},{"type":"WEB","url":"https://www.suse.com/security/cve/CVE-2026-41140"},{"type":"WEB","url":"https://www.suse.com/support/security/rating/"},{"type":"WEB","url":"https://bugzilla.suse.com/1263184"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-41140"},{"type":"ADVISORY","url":"https://security-tracker.debian.org/tracker/CVE-2026-41140"},{"type":"PACKAGE","url":"https://github.com/python-poetry/poetry"},{"type":"WEB","url":"https://github.com/python-poetry/poetry/releases/tag/2.3.4"},{"type":"PACKAGE","url":"https://pypi.org/project/poetry"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-73h3-mf4w-8647"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-41140"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-41140"},{"type":"WEB","url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json"},{"type":"WEB","url":"https://access.redhat.com/security/cve/CVE-2026-41140"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461604"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2026-41140","url":"https://www.cve.org/CVERecord?id=CVE-2026-41140","license":"CC-BY-4.0","modified_at":"2026-07-15T00:59:56.835Z","relation":"self"},{"provider":"csaf-suse","source_id":"CVE-2026-41140","url":"https://www.suse.com/security/cve/CVE-2026-41140/","license":"TLP:CLEAR, mirroring permitted","modified_at":"2026-08-06T01:22:40Z","relation":"self"},{"provider":"osv","source_id":"AZL-84035","url":"https://osv.dev/vulnerability/AZL-84035","license":"MIT","modified_at":"2026-11-19T05:26:20Z","relation":"self"},{"provider":"osv","source_id":"DEBIAN-CVE-2026-41140","url":"https://osv.dev/vulnerability/DEBIAN-CVE-2026-41140","modified_at":"2026-10-27T10:01:17.807367Z","relation":"self"},{"provider":"osv","source_id":"GHSA-73h3-mf4w-8647","url":"https://osv.dev/vulnerability/GHSA-73h3-mf4w-8647","license":"CC-BY-4.0","modified_at":"2026-07-13T16:42:25.945183Z","relation":"self"},{"provider":"osv","source_id":"PYSEC-2026-2890","url":"https://osv.dev/vulnerability/PYSEC-2026-2890","license":"CC-BY-4.0","modified_at":"2026-07-13T16:32:58.805584Z","relation":"self"},{"provider":"osv","source_id":"UBUNTU-CVE-2026-41140","url":"https://osv.dev/vulnerability/UBUNTU-CVE-2026-41140","license":"CC-BY-SA-4.0","modified_at":"2026-10-17T12:58:14.482329Z","relation":"self"},{"provider":"redhat-vex","source_id":"CVE-2026-41140","url":"https://access.redhat.com/security/cve/CVE-2026-41140","license":"CC-BY-4.0","modified_at":"2026-08-10T11:00:52.758843Z","relation":"self"}]}
