lastversion before 3.6.20 Arbitrary File Write via Tar Symlink Members
- State
- Published
- Severity
- 8.7 High
- Published
- Nov 26, 2026
- Updated
- Nov 27, 2026
- Reserved
- Nov 26, 2026
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.
| Product | Versions |
|---|---|
| lastversion dvershinin | before 3.6.20 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.7 High | VulnCheck | |
| 3.1 | 8.8 High | VulnCheck |
Weaknesses
- CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
- https://github.com/dvershinin/lastversion/issues/246Issue Tracker
- https://github.com/dvershinin/lastversion/commit/feb362e7af52c03063755dbbce82ff53ff4bafbfPatch
- lastversion v3.6.20 Release NotesRelease Notes
- https://github.com/dvershinin/lastversion/blob/17e18ae09ad3038bc4a09e5026405d614eacd7b7/src/lastversion/utils.py#L348-L391Technical Details
- VulnCheck Advisory: lastversion before 3.6.20 Arbitrary File Write via Tar Symlink MembersThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.