CVE-2026-137539: lastversion before 3.6.20 Arbitrary File Write via Tar Symlink Members
lastversion before 3.6.20 contains a path traversal vulnerability in extracttar() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
lastversionto a version that resolves this vulnerability.Fixed in 3.6.20
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of lastversion before 3.6.20 are exposed when they extract a tarball from project release assets controlled by an attacker. The attacker can use crafted tar symlink members to cause writes outside the intended extraction directory.
What does an attacker need to exploit it?
The attacker needs control over a project's release assets and must provide a crafted tarball containing a symlink followed by a file placed beneath that symlink. No authentication or prior privileges are required, but a user must trigger extraction of the malicious archive.
What is the impact of a successful exploit?
A successful exploit can write attacker-controlled files outside the extraction directory, potentially including files such as usercustomize.py. This can lead to code execution and affect confidentiality, integrity, and availability.
How can I remediate the issue?
Upgrade lastversion to version 3.6.20 or later. Until upgrading is possible, avoid extracting tar release assets from projects whose release assets may be attacker-controlled.