CVE-2026-137569: xtractr before 0.4.1 Path Traversal via Output Prefix Check
Golift xtractr before 0.4.1 contains a path traversal vulnerability that allows attackers to write files outside the extraction root because a strings.HasPrefix output directory check lacks separator awareness. Attackers can supply ZIP, TAR, 7z, RAR, or other archives with entries like ../<outputdir>evil/file to create or overwrite files in sibling directories.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
golift/xtractrto a version that resolves this vulnerability.Fixed in 0.4.1
Event History
Frequently Asked Questions
Who is exposed to this issue?
Applications using golang/github.com/golift/xtractr before 0.4.1 to extract attacker-controlled archives are exposed. The affected archive formats include ZIP, TAR, 7z, RAR, and other formats handled by the library.
What must an attacker do to exploit it?
An attacker must persuade the application to extract a crafted archive. Archive entries can use traversal paths such as ../<outputdir>_evil/file to target files in sibling directories outside the intended extraction root.
What is the impact of successful exploitation?
A crafted archive can cause files to be created or overwritten outside the extraction root, in sibling directories. The provided severity vector indicates integrity impact only, with no stated confidentiality or availability impact.
How can the issue be remediated?
Upgrade xtractr to version 0.4.1 or later. Versions before 0.4.1 use an output-directory prefix check that does not account for path separators.