Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft archive with ../outputdir_evil entries
-
ExploitDeliver to system extracting untrusted archives
-
ExecutionHasPrefix prefix check bypassed, path escapes root
-
ImpactWrite or overwrite files in sibling directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that an application using golift xtractr before 0.4.1 extract an attacker-controlled archive (ZIP, TAR, 7z, RAR, cpio, ar, or ISO) - this is the passive user interaction (UI:P) in the vector. The specific trigger is an archive entry whose path resolves to a sibling of the configured OutputDir sharing its name prefix (e.g. OutputDir followed by '_evil'), which defeats the non-separator-aware strings.HasPrefix(cleanPath, x.OutputDir) check. Limiting factors: the attacker cannot traverse to arbitrary filesystem locations, only to directories sharing the OutputDir name prefix, and impact is confined to file creation/overwrite (integrity) with no read/confidentiality or denial-of-service effect; the host application must also actually feed untrusted archives through xtractr for the condition to be reachable. |
| Impact | This is a genuine but moderate-severity integrity flaw, not an emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N) scores 5.3 and signals that while reachable over the network with no privileges and low complexity, exploitation is gated by passive user interaction (UI:P) and limited to low integrity impact with no confidentiality or availability loss. No CISA KEV listing and no public exploit is present in the input, so exploitation status is: no public exploit identified at time of analysis - only a regression test (path_boundary_test.go) ships with the fix, which is not weaponized exploit code. EPSS was not provided, so probability of exploitation cannot be quantified. The vuln.today Decision label is 'this_month' (a routine remediation priority, not act_now/emergency), which aligns with the mid-range CVSS and absence of active-exploitation evidence. The real limiter is mechanism: the strings.HasPrefix bug only permits writing into sibling directories whose names share the OutputDir prefix (e.g. OutputDir + '_evil'), not arbitrary traversal to anywhere on disk, so the practical blast radius is narrower than a classic Zip-Slip. Net: a legitimate issue worth patching on a normal cycle, not a drop-everything priority. |
| Exploit ScenarioDerived | An attacker crafts a ZIP, TAR, 7z, or RAR archive containing an entry such as ../<outputdir>_evil/file and gets it to a system that extracts untrusted archives with xtractr (for example via the Unpackerr download-automation pipeline). When the victim process extracts the archive, the separator-unaware prefix check passes and the entry is written into a sibling directory outside the intended extraction root, creating or overwriting files there. No public exploit code is referenced; exploitation requires the victim to process the attacker-supplied archive (UI:P). |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 26, 2026
Golift xtractr before 0.4.1 can write files outside the configured extraction root when an application extracts an attacker-controlled archive, allowing creation or overwrite of files in sibling directories whose names share the OutputDir prefix. The flaw is a CWE-22 path traversal caused by a separator-unaware strings.HasPrefix check; it is unauthenticated from the network perspective but requires the host application to process a malicious ZIP, TAR, 7z, RAR, cpio, ar, or ISO archive (UI:P). It is a genuine but moderate-severity integrity flaw (vuln.today priority: this_month), not an emergency, and no public exploit identified at time of analysis; the vendor-released patch is v0.4.1.
RemediationAI
Vendor-released patch: v0.4.1. Upgrade golift xtractr to v0.4.1 or later; building from source should include PR #159 or commit 5e7856d96b89f639ff696b4752f54f3ae44d409d, which replaces the strings.HasPrefix checks with filepath.Rel-based pathWithinOutput and adds symlink/hard-link target validation. The available references do not describe a vendor-documented workaround for affected versions, so the evidence-supported compensating measure until upgrade is to avoid feeding untrusted archives to xtractr, since exploitation requires the host application to extract an attacker-controlled archive. See https://github.com/golift/xtractr/releases/tag/v0.4.1, https://github.com/golift/xtractr/pull/159, https://github.com/Unpackerr/unpackerr/issues/641, and https://www.vulncheck.com/advisories/xtractr-before-0.4.1-path-traversal-via-output-prefix-check.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-22: the extractor cleans paths but validates containment with strings.HasPrefix(cleanPath, x.OutputDir), which treats a string prefix as a directory boundary. A path such as /tmp/out_evil/file passes for OutputDir /tmp/out because the prefix matches even though the separator is absent, so archive entries like ../out_evil/file can create or overwrite files in the sibling directory. The fix in PR #159 and commit 5e7856d96b89f639ff696b4752f54f3ae44d409d replaces those checks across archive handlers with pathWithinOutput, which uses filepath.Rel to require the path to equal OutputDir or be a descendant, and it adds ensureLinkWithinOutput/createSymlink/createHardLink validation so symlink and hard-link targets cannot escape the extraction root either. The same prefix pattern affected ZIP, TAR, 7z, RAR, cpio, ar, and ISO handling; the CPE wildcard cpe:2.3:a:golift:xtractr:*:*:*:*:*:*:*:* covers pre-0.4.1 releases.
Know when Xtractr gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Attacker-supplied archive must be extracted by a victim process (UI:R), no auth needed (PR:N); impact is constrained sibling-directory file writes, so I:L and C:A:N with no scope change.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
EUVD-2026-136362
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB