CVE-2026-137569

xtractr before 0.4.1 Path Traversal via Output Prefix Check

Published Nov 26, 2026 CVSS 4.0 · 5.3 Medium EPSS n/a KEV · Not listed
Description
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.

Analysis

AI-generated

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.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade golift:xtractr to version 0.4.1 or later to apply the official fix.
  • If an upgrade is not immediately feasible, restrict the use of xtractr to trusted archives and isolate the extraction process in a sandboxed environment to limit the impact of possible file writes.
  • Implement additional path sanitization in your workflow: resolve the target path with path.Join and path.Clean, then confirm that the resolved path is still a child of the intended extraction directory before writing any file.

Generated by OpenCVE AI on November 26, 2026 at 15:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Description 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.
Title xtractr before 0.4.1 Path Traversal via Output Prefix Check
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 4.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N'}

Subscriptions

No data.

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 26, 2026, 1:13 PM
Reserved
Nov 26, 2026, 12:50 PM
Status
Received
Published
Nov 26, 2026, 2:17 PM
Modified
Nov 26, 2026, 2:17 PM