LiveActive security incident?Get immediate response
CVE Record

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

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.

HighCVSS 8.7Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Poetry can mishandle archive extraction when processing source distributions on certain Python 3.10 and 3.11 releases. A crafted package archive could write outside the intended extraction location, risking file overwrite and service disruption in developer or CI environments. Poetry fixed this in version 2.3.4.

Executive priority

High priority for organizations that build Python software with Poetry, especially where CI consumes third-party packages. Patch build infrastructure first because compromise could alter files or disrupt builds, affecting software integrity and delivery reliability.

Technical view

CVE-2026-41140 is a CWE-22 path traversal flaw in Poetry before 2.3.4, in src/poetry/utils/helpers.py extractall(). It affects supported Poetry use on Python 3.10.0-3.10.12 and 3.11.0-3.11.4 where tarfile.data_filter is unavailable. CVSS 3.1 is 8.7, with high integrity and availability impact.

Likely exposure

Most likely exposure is CI, build servers, release pipelines, and developer machines running Poetry <2.3.4 on the listed Python versions while extracting sdist tarballs. Environments using newer Poetry, unaffected Python patch levels, or only trusted package inputs have reduced exposure, but should still verify.

Exploitation context

The source bundle does not show CISA KEV listing or confirmed active exploitation. The CVSS vector indicates network attack vector, low complexity, low privileges, and required user interaction. Treat untrusted or third-party source distributions as the primary risk context.

Researcher notes

Evidence is specific to Poetry's tar extraction path and Python versions lacking tarfile.data_filter. The public bundle names a fixed Poetry release but does not provide exploit evidence. Avoid broad claims beyond sdist extraction and the listed Python version constraints.

Mitigation direction

  • Upgrade Poetry to version 2.3.4 or later.
  • Prioritize CI, build, and release systems using Poetry.
  • Verify Python runtime versions against the affected 3.10 and 3.11 ranges.
  • Restrict or review untrusted sdist sources until patched.
  • Apply relevant downstream vendor advisories, including Red Hat guidance where applicable.

Validation and detection

  • Inventory Poetry versions across developer and CI environments.
  • Identify systems running Python 3.10.0-3.10.12 or 3.11.0-3.11.4.
  • Check build logs for sdist extraction from external package sources.
  • Confirm Poetry reports version 2.3.4 or later after remediation.
  • Review Red Hat status for managed or packaged deployments.
Prepared
Confidence
high
Sources
7

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · medium confidence lookup

CWE-22: File access and web shell behavior lookup

File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

File access behavior lookup

The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2026-41140 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
8.7 (3.1)
Known Exploited
No
Published

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

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

2CVSS vectors
5Timeline events
2ADP providers
6Source links

SSVC decision data

CISA-ADPCISA Coordinator
Timestamp
Version
2.0.3
Exploitation: noneAutomatable: noTechnical Impact: partial

CVSS vector scores

2 official scores

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
8.7CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:N/I:H/A:H2.35.8redhat-SADP
0.6CVSS 4.0LowCVSS: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:UGitHub_M

Vulnerability scoring details

Base CVSS 4.0 score

0.6Low
CVSS 4.0 vector shape for CVE-2026-41140Attack VectorAttack ComplexityAttack RequirementsPrivileges RequiredUser InteractionVS ConfidentialityVS IntegrityVS AvailabilitySS ConfidentialitySS IntegritySS Availability

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

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Attack Requirements
NonePresent
Privileges Required
NoneLowHigh
User Interaction
NonePassiveActive
VS Confidentiality
HighLowNone
VS Integrity
HighLowNone
VS Availability
HighLowNone
SS Confidentiality
HighLowNone
SS Integrity
HighLowNone
SS Availability
HighLowNone

Vulnerability timeline

Timeline events are normalized from CVE metadata, CNA source timelines, ADP timelines, and KEV metadata when present.

  1. CVE reservedCVE Program

    The CVE ID was reserved by the assigning CNA.

  2. ADP timelineredhat-SADP

    Made public.

  3. CVE publishedCVE Program

    The CVE record was published.

  4. ADP timelineredhat-SADP

    Reported to Red Hat.

  5. CVE updatedCVE Program

    The CVE record metadata indicates this as the latest update time.

ADP provider summaries

CISA-ADPCISA ADP Vulnrichment
other:ssvc
redhat-SADPpoetry: Poetry: Path traversal vulnerability allows arbitrary file write via malicious package extraction
other:Red Hat severity ratingcvssV3_1
  • 2026-04-24T18:01:10.709Z: Reported to Red Hat.
  • 2026-04-24T17:10:33.869Z: Made public.

Source materials

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
python-poetrypoetry< 2.3.4Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-22 · source CWE mapping

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.