Skip to main content

tar-fs EUVDEUVD-2026-145101

| CVE-2026-145489 HIGH
Improper Link Resolution Before File Access (CWE-59)
2026-12-05 VulnCheck GHSA-pch6-x565-qvw7
7.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deliver crafted tarball to victim application
  2. Delivery
    Application extracts archive with vulnerable tar-fs
  3. Exploit
    Early symlink entry plus later '..' entries chain together
  4. Execution
    Symlink validation bypassed, path escapes extraction root
  5. Impact
    Write 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

tar-fs 3.0.0 <3.1.4
tar-fs 0 <2.1.6

Affected Packages

euvd tar_fs fix: 2.1.6, 3.1.4

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

Vendor (VulnCheck) PRIMARY 7.1 HIGH
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
vuln.today AI 7.1 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:H/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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.

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

Prevalence
High
extremely popular npm tar extraction library, tens of millions of weekly downloads
Social Media
3
Sightings
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy