Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPublish malicious project release assets
-
DeliveryVictim runs lastversion to fetch tarball
-
ExploitSymlink member escapes extraction directory
-
ExecutionWrite usercustomize.py to Python path
-
ImpactCode execution on next Python run
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Requires that the victim invoke lastversion (before 3.6.20) to download and extract a release tarball from a project whose release assets the attacker controls - the attacker must craft a tar archive with a symlink member followed by a file written beneath it (CWE-59). This is a passive-user-interaction flaw (UI:P): the victim must choose to process the attacker's project, so there is no default remote-unauthenticated path against an idle host. Exploitation is limited to deployments using lastversion's archive-extraction path and to versions prior to 3.6.20; updating to 3.6.20 is the fix. |
| Impact | This is a genuine but conditional code-execution risk rather than a mass-exploitation emergency. The input CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:P) and the matching description agree on the mechanism: a network-reachable flaw requiring passive victim interaction, where the attacker needs no privileges on the victim but must control a project's release assets that the victim then processes with lastversion. VI:H/VC:H/VA:H reflect that successful exploitation yields arbitrary file write escalating to code execution. No KEV listing is present, no EPSS probability was supplied, and the input does not mark a working POC, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a serious issue to patch promptly rather than an incident in progress. The dependency on the victim choosing to fetch and extract an attacker-controlled project's tarball (UI:P) materially limits real-world risk versus the 8.7 base score - this favors targeted supply-chain-style abuse over opportunistic scanning. Key missing data: no EPSS, no confirmed exploit status, and no CISA KEV entry to corroborate exploitation. |
| Exploit ScenarioDerived | An attacker publishes or compromises a software project whose release assets lastversion will download, and crafts a release tarball containing a symlink member pointing outside the extraction directory followed by a file written beneath that symlink. When a victim runs lastversion (before 3.6.20) to fetch and extract that project's release, the file is written outside the intended directory - for example usercustomize.py into a Python site path - yielding code execution the next time Python runs. No public working exploit is identified in the provided data, though a detailed VulnCheck advisory and the fixing commit describe the mechanism. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Platforms running lastversion before 3.6.20 can be made to write arbitrary files outside the extraction directory, leading to code execution, because extract_tar() follows symlink members inside a downloaded release tarball. An attacker who controls a project's release assets can craft an archive with a symlink followed by a file placed beneath it, dropping a module such as usercustomize.py that Python later imports and executes. The flaw is unauthenticated from the network position described in the CVSS vectors, but it requires the victim to deliberately run lastversion against the attacker's project (passive user interaction), so this is a conditional code-execution risk rather than a mass-exploitation emergency; no public exploit was identified at time of analysis, and the vendor has released 3.6.20 as the fix.
RemediationAI
Upgrade to lastversion 3.6.20, the vendor-released fix version, which carries the rewritten extraction validation from commit feb362e7af52c03063755dbbce82ff53ff4bafbf (release: https://github.com/dvershinin/lastversion/releases/tag/v3.6.20); verify the installed package version reports 3.6.20 or later, since earlier 3.6.x builds remain vulnerable. The sources document no configuration toggle or patch-level workaround as a substitute for updating, and the only complete remedy described is the 3.6.20 upgrade. Until it is deployed, exposure can be constrained by not running lastversion's download-and-extract path against projects whose release assets are not trusted, at the cost of losing automated retrieval for those sources; discovery-only usage that does not unpack an archive does not hit the vulnerable function. Advisory context is available at https://www.vulncheck.com/advisories/lastversion-before-3.6.20-arbitrary-file-write-via-tar-symlink-members and the upstream issue https://github.com/dvershinin/lastversion/issues/246. Remediation is prioritized for this week per the current decision signal.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
lastversion is a Python CLI and library that queries code-hosting services for a project's newest release and can download and unpack its release assets; the vulnerable logic sits in extract_tar() in src/lastversion/utils.py (pre-fix code at lines 348-391 of commit 17e18ae). The legacy guard check_if_tar_safe() inspected only member names returned by tar_file.getnames() and compared them against the first member's parent directory, so symlink and hardlink targets were never validated and the state of the destination during member-by-member extraction was not considered. A tarball containing a symlink member plus a regular file beneath that link therefore resolved outside the extraction root and wrote there; dropping usercustomize.py, a module Python imports at interpreter startup, converts the file write into code execution. CWE-59 (link following) describes the root cause. The upstream fix (commit feb362e7, shipped as release v3.6.20) replaces the name-only check with _tar_members() and _check_tar_member(), which reject absolute member names and '..' components, reject anything that is not a regular file or directory, reject absolute link targets, and re-validate each member against the resolved destination immediately before extraction because earlier members can change what a path resolves to. It also creates validated links directly instead of letting tarfile fall back to extracting an archive member whose metadata has not passed the checks. The trigger described in the sources is the crafted symlink-then-file archive; no other trigger is described.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Attacker-supplied tarball is fetched over the network (AV:N) and needs no victim privileges (PR:N) but requires the victim to run lastversion against the malicious project (UI:R); arbitrary file write yields full code execution (C/I/A:H).
Primary rating from Vendor (vulncheck).
CVSS VectorVendor: vulncheck
Lifecycle Timeline
2DescriptionCVE.org
lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via tar symlink members. Attackers controlling a project's release assets can craft a tarball with a symlink followed by a file beneath it, writing files like usercustomize.py to achieve code execution.
Executive ViewAI
CVE-2026-137539 is a high-severity flaw in the lastversion package that allows arbitrary file writes outside the extraction directory, potentially leading to code execution when users process malicious release tarballs. While exploitation requires a user to intentionally run lastversion against a compromised or attacker-controlled project, the impact could be significant for teams relying on this tool for dependency management. Leadership should prioritize patching to mitigate the risk of remote code execution within development or CI/CD environments.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-136870
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB