Skip to main content

lastversion EUVDEUVD-2026-136870

| CVE-2026-137539 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-11-26 disclosure@vulncheck.com
8.7
CVSS 4.0 · Vendor: vulncheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Publish malicious project release assets
  2. Delivery
    Victim runs lastversion to fetch tarball
  3. Exploit
    Symlink member escapes extraction directory
  4. Execution
    Write usercustomize.py to Python path
  5. Impact
    Code 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.7% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

lastversion 0 <3.6.20

Affected Packages

euvd lastversion fix: 3.6.20

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

Vendor (vulncheck) PRIMARY 8.7 HIGH
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
vuln.today AI 8.8 HIGH

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).

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (vulncheck).

CVSS VectorVendor: vulncheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Nov 26, 2026 - 21:03 EUVD
CVE Published
Nov 26, 2026 - 20:17 cve.org
HIGH 8.7

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.7%
Top 49% exploitable
Prevalence
Low
niche Python developer CLI/library for tracking latest project releases
Social Media
5
Sightings
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.7%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

More in Python

View all
CVE-2025-24016 CRITICAL POC
9.9 Feb 10

Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t

CVE-2025-27520 CRITICAL POC
9.8 Apr 04

BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser

CVE-2025-2945 CRITICAL POC
9.9 Apr 03

pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi

CVE-2013-5093 MEDIUM POC
6.8 Sep 27

The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python

CVE-2025-32375 CRITICAL POC
9.8 Apr 09

BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica

CVE-2014-0224 HIGH POC
7.4 Jun 05

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

CVE-2024-21644 HIGH POC
7.5 Jan 08

pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.

CVE-2026-33017 CRITICAL POC
9.3 Mar 17

Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301

CVE-2017-9462 HIGH POC
8.8 Jun 06

In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse

CVE-2026-49869 CRITICAL POC
10.0 Jun 26

Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to

CVE-2026-39987 CRITICAL POC
9.3 Apr 08

Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/

CVE-2024-21645 MEDIUM POC
5.3 Jan 08

pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy