Quick answers
- Is CVE-2026-41140 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2026-41140 being exploited in the wild.
- How severe is CVE-2026-41140?
- High severity, with a CVSS score of 8.7, published 24 April 2026.
- Which products and versions are affected?
- poetry (PyPI) < 2.3.4, ECOSYSTEM:introduced=0,fixed=2.3.4.
- Is there a fix for CVE-2026-41140?
- Yes. poetry (PyPI): upgrade to 2.3.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2026-41140 attacked?
- It is attacked over the network, in a software library.
- Am I affected by CVE-2026-41140?
- Check whether you run poetry (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- poetry (PyPI): upgrade to 2.3.4 or later
pip install "poetry>=2.3.4"
Technical details
A path traversal vulnerability exists in Poetry's 'extractall' function within 'src/poetry/utils/helpers.py'. The issue occurs when Poetry extracts source distribution (sdist) tarballs on Python environments where 'tarfile.data_filter' is unavailable or broken (specifically Python 3.10.0-3.10.12 and 3.11.0-3.11.4). An attacker can craft a malicious tarball containing members with '../' sequences, symlinks, or hardlinks to write files outside the intended extraction directory. This can be triggered during dependency resolution (e.g., 'poetry lock') or installation. The vulnerability is addressed in Poetry version 2.3.4 by implementing manual path validation for all archive members.
Affected products
- python-poetry Poetry < 2.3.4
- Red Hat Red Hat Ansible Automation Platform 2.6 affected
- Red Hat Red Hat OpenShift Container Platform 4 affected
Identifiers
- CVE-2026-41140
- GHSA-73h3-mf4w-8647
- PYSEC-2026-2890
Timeline
- 2026-04-18: advisory: Original GitHub security advisory published
- 2026-04-24: disclosed: CVE-2026-41140 published to NVD
- 2026-06-09: patched: Red Hat released updates for Ansible Automation Platform
References
- https://github.com/python-poetry/poetry/security/advisories/GHSA-73h3-mf4w-8647
- https://access.redhat.com/errata/RHSA-2026:24866
- https://access.redhat.com/security/cve/CVE-2026-41140
- https://bugzilla.redhat.com/show_bug.cgi?id=2461604
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41140.json