CVE-2026-137539
lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via ta…
Impact
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.
An attacker can exploit this over the network, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Dvershinin)
| Product | Affected versions |
|---|---|
| Lastversion | before 3.6.20 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/dvershinin/lastversion/issues/246
- https://github.com/dvershinin/lastversion/commit/feb362e7af52c03063755dbbce82ff53ff4bafbf
- https://github.com/dvershinin/lastversion/releases/tag/v3.6.20
- https://github.com/dvershinin/lastversion/blob/17e18ae09ad3038bc4a09e5026405d614eacd7b7/src/lastversion/utils.py#L348-L391
- https://www.vulncheck.com/advisories/lastversion-before-3.6.20-arbitrary-file-write-via-tar-symlink-members
- https://github.com/advisories/GHSA-r9g7-m2v3-69vq
- https://nvd.nist.gov/vuln/detail/CVE-2026-137539