Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| dvershinin | lastversion | < 3.6.20 | 3.6.20 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-lastversion | 3.6.20-1.1 | openSUSE-SU-2026:12718-1 |
Advisories 1
- openSUSE-SU-2026:12718-1 python313-lastversion-3.6.20-1.1 on GA media SUSE / openSUSE Security Updates · Nov 28, 2026
References
- https://github.com/dvershinin/lastversion/issues/246 issue-tracking
- https://github.com/dvershinin/lastversion/commit/feb362e7af52c03063755dbbce82ff53ff4bafbf patch
- lastversion v3.6.20 Release Notes release-notes
- https://github.com/dvershinin/lastversion/blob/17e18ae09ad3038bc4a09e5026405d614eacd7b7/src/lastversion/utils.py#L348-L391 technical-description
- VulnCheck Advisory: lastversion before 3.6.20 Arbitrary File Write via Tar Symlink Members third-party-advisory