CVE-2026-137539: lastversion before 3.6.20 Arbitrary File Write via Tar Symlink Members

Published Nov 26, 2026
·
Updated

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

1 affected component
pypi/lastversion<3.6.20

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade lastversion to a version that resolves this vulnerability.

    Fixed in 3.6.20

Event History

Nov 26, 2026
CVE Published
via MITRE·08:02 PM
Data Sourced
via MITRE·08:02 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

4

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203