Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. poetry
  4. ›
  5. CVE-2026-41140

CVE-2026-41140: Poetry has Path Traversal in tar extraction on Python 3.10.0 - 3.10.12 and 3.11.0 - 3.11.4

April 22, 2026 (updated April 27, 2026)

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.

References

  • github.com/advisories/GHSA-73h3-mf4w-8647
  • github.com/python-poetry/poetry
  • github.com/python-poetry/poetry/releases/tag/2.3.4
  • github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647
  • nvd.nist.gov/vuln/detail/CVE-2026-41140

Code Behaviors & Features

Detect and mitigate CVE-2026-41140 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.3.4

Fixed versions

  • 2.3.4

Solution

Upgrade to version 2.3.4 or above.

Impact 4.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

pypi/poetry/CVE-2026-41140.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 12:18:01 +0000.