Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted tarball to victim application
-
DeliveryApplication extracts archive with vulnerable tar-fs
-
ExploitEarly symlink entry plus later '..' entries chain together
-
ExecutionSymlink validation bypassed, path escapes extraction root
-
ImpactWrite or read files outside destination directory
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires that an application using tar-fs before 2.1.6 or 3.x before 3.1.4 extract a tarball whose contents the attacker controls or can influence; no special non-default option is needed, because the flaw bypasses tar-fs's existing symlink validation. The crafted archive must contain a symlink entry followed by later entries whose paths traverse through that earlier symlink using '..' segments (nested symlink chaining), so that the OS resolves '..' against the real parent and escapes the destination. The principal limiting factor is interaction (UI:P): extraction of an untrusted archive must actually occur, so deployments that only extract fully trusted, self-produced tarballs are not realistically exposed; authentication is not required of the attacker (PR:N). |
| Impact | This is a genuine but not emergency-grade priority. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N) scores 7.1 and is driven by high integrity impact (arbitrary file write outside the extraction directory) reachable by an unauthenticated remote attacker, with the key brake being required user/application interaction (UI:P) - a victim must actually extract an attacker-supplied tarball. No EPSS score was provided, so statistical exploitation probability is unknown; the CVE is NOT in CISA KEV, so there is no confirmed active exploitation; and the references contain only patch commits and a VulnCheck advisory, so no public exploit code is identified at time of analysis. The vuln.today decision label is 'this_week' (not act_now/emergency), which aligns with a serious, patch-this-week item rather than a drop-everything event. One signal conflict to flag: the input 4.0 vector sets VC:N (no confidentiality impact), yet the description explicitly states attackers can 'write or read files' outside the destination - so the supplied vector appears to under-count arbitrary file read; verify confidentiality impact with the advisory. The dominant real-world risk amplifier here is not the raw score but prevalence: tar-fs is an enormously popular Node.js dependency, so this is primarily a software-supply-chain exposure wherever untrusted archives are extracted. |
| Exploit ScenarioDerived | An application using a vulnerable tar-fs version extracts a tarball that originated from an untrusted source (e.g., a user upload, a fetched package, or a downloaded build artifact). The attacker crafts that tarball so an early entry creates a symlink and later entries traverse through it using '..' segments, causing tar-fs to follow the chained link and write or read files outside the intended extraction directory. No public exploit code is identified at time of analysis, though the technique is fully described in the VulnCheck advisory and the fix commits. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 05, 2026
Path traversal in the npm library tar-fs (before 2.1.6, and 3.x before 3.1.4) allows an attacker who supplies a crafted tarball to write files outside the intended extraction directory by chaining a symlink entry with later entries that traverse through it using '..' segments. No authentication or special non-default extraction option is required, but the victim must actually extract an archive whose contents the attacker controls (UI:R); integrity impact is high while confidentiality impact is limited and availability is unaffected. Vendor patches are available in 2.1.6 and 3.1.4, and no public exploit code was identified at time of analysis; the fix should be scheduled within the current week.
RemediationAI
Vendor-released patch: upgrade tar-fs to 2.1.6 (2.x line) or 3.1.4 (3.x line) - these are the first fixed versions and are referenced by the maintainer's v3.1.3...v3.1.4 comparison and the two upstream commits. Update lockfiles and rebuild so transitive dependents resolve the fixed release, and verify with npm ls tar-fs that no nested copy below 2.1.6 or 3.1.4 remains. Until the upgrade lands, the practical compensating control is to never extract archives from untrusted or attacker-influenceable sources with this library, since the flaw specifically bypasses the library's existing validateSymlinks and strip containment checks, so enabling those options does not close the gap; where untrusted archives must be processed, unpack them in a throwaway container or sandbox with a read-only root and no bind mounts of host data, accepting the extra operational cost. Updating is the only complete fix per the vendor patch set, which also hardens symlink, hardlink, directory-permission and uid/gid handling.
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
tar-fs is a Node.js library widely used to unpack tarballs to disk (it underpins tooling such as prebuild-install and Docker-related packages). It is a CWE-59 link-following flaw: the extractor performed lexical containment checks (path.resolve/inCwd, plus the optional validateSymlinks and strip logic) on entry names and link targets, but those checks cannot model how the operating system resolves paths. When an archive first creates a symlink such as 'a' -> /outside, and a later entry is 'a/../b', the OS resolves '..' against the real parent reached through the symlink rather than against the lexical string, so the write lands outside cwd. The upstream fix (commits 1a39c7dcaa88d595f3d14e8c56eddc890af2cc8c and 85e0ebb886219d7c38a5eca7bf33d21d8e3189d2, released in v3.1.4) introduces a validPath() helper with explicit '..' policies (DOTDOT_NONE for entry names and hardlink targets, DOTDOT_LEADING when symlink validation or strip is enabled, DOTDOT_ANY otherwise), lstats a destination before mkdir/chmod so it never creates directories or changes permissions through an existing symlink, resolves cwd with realpath before hardlinking so a symlinked extraction root is accounted for, and validates uid/gid values. The trigger in a given application is the extraction of an attacker-influenced archive; the exact archive layout beyond 'symlink entry followed by traversal entries' is not further specified in the available sources.
Know when Tar Fs 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:H/VA:N/SC:N/SI:N/SA:N
Attacker delivers a crafted tarball remotely (AV:N, PR:N) but the victim must extract it (UI:R); arbitrary file write outside the root gives I:H, and symlink-based file read gives limited C:L.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
tar-fs before 2.1.6 and 3.x before 3.1.4 contains a path traversal vulnerability that allows attackers to escape the extraction directory by chaining symlinks with '..' segments. Attackers can supply a crafted tarball where later entries traverse through earlier symlinks, creating links outside the destination to write or read files.
Articles & Coverage 1
Executive ViewAI
CVE-2026-145489 is a high-severity path traversal vulnerability in the tar-fs npm library, used for extracting tarball archives. Attackers who can supply a crafted tarball can write files outside the intended directory, potentially overwriting critical system or application files. This affects any product or service that extracts untrusted archives using vulnerable versions of tar-fs, and leadership should prioritize remediation to prevent integrity compromise and potential follow-on attacks.
Apply vendor patch.
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-145101
GHSA-pch6-x565-qvw7
NVD
CVE.org
Exploit-DB