Technical impact
xtractr before version 0.4.1 contains a path traversal flaw where the output directory check uses strings.HasPrefix without separator awareness. This allows an attacker to craft archive entries such as '../<outputdir>_evil/file', causing the tool to write files outside the intended extraction root. The resulting arbitrary file write can overwrite existing files, including critical system files, or place malicious executables depending on the extraction environment. The vulnerability is limited to the extraction process and relies on non‑trusted archive input.
Affected Systems
The flaw affects the golift:xtractr package for any release before 0.4.1. Users employing versions older than 0.4.1 for ZIP, TAR, 7z, RAR, or other archive extraction are susceptible.
Risk and Exploitability
The CVSS score of 5.3 indicates a moderate impact. EPSS data is missing, so opportunities for exploitation cannot be quantified, and the issue is not listed on CISA’s KEV catalog. A likely attack vector involves an attacker supplying a malicious archive file to the xtractr tool, which processes it without validating the resulting file path relative to the extraction root. Skilled adversaries could leverage this to overwrite or create files in sibling directories, leading to potential compromise or denial of service.