Skip to main content

Red Hat EUVDEUVD-2025-16687

| CVE-2025-48387 HIGH
Path Traversal (CWE-22)
2025-06-02 security-advisories@github.com GHSA-8cj5-5rvv-wf4v
8.7
CVSS 4.0 · GitHub Advisory
View

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.

Impact

The CVSS 8.7 score is driven by high integrity impact (VI:H), network accessibility (AV:N), and low attack complexity (AC:L), indicating straightforward exploitation. However, real-world risk depends on deployment context: (1) if tar-fs is used in server-side extract operations processing user-supplied or untrusted tarballs, risk is HIGH; (2) if used only for trusted archive processing, risk is LOWER. The CVSS vector indicates no authentication required (PR:N) and no user interaction (UI:N), maximizing attack surface. Absence of confirmed KEV status and public POC suggests this is not yet actively exploited in the wild, but the straightforward nature of path traversal attacks means weaponization is trivial. Organizations using tar-fs in web services, file upload processors, or CI/CD pipelines should prioritize immediate patching. The workaround (ignore option) is available but operationally limiting.

Exploit ScenarioDerived

An attacker uploads a maliciously crafted tar archive to a web application using tar-fs for file extraction. The tar archive contains an entry with a path like '../../../etc/config.json' or an absolute path '/etc/passwd'. When the server calls tar.extract(uploadDir, { ... }), the vulnerable tar-fs version fails to sanitize the path and writes the attacker's content outside uploadDir—potentially overwriting application configuration files, stealing sensitive data, or achieving code execution if the application later executes extracted files. The attack requires no authentication (PR:N) and no user interaction beyond upload (UI:N), making it easily automatable via script or crawler. Exploitation complexity is low (AC:L) as path traversal is a well-understood technique, though actual impact depends on filesystem permissions and application logic post-extraction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Mar 14, 2026

tar-fs versions prior to 3.0.9, 2.1.3, and 1.16.5 contain a path traversal vulnerability (CWE-22) that allows attackers to extract tar archives outside the intended directory using specially crafted tarballs. This affects all users of vulnerable tar-fs versions with network-accessible extraction endpoints; the high CVSS 8.7 score reflects the integrity impact and network-accessible attack vector, though no KEV status or widespread public exploits have been confirmed at this time.

RemediationAI

Upgrade npm tar-fs package to patched versions; details: ['For 1.x users: upgrade to 1.16.5 or later', 'For 2.x users: upgrade to 2.1.3 or later', 'For 3.x users: upgrade to 3.0.9 or later']; command: npm update tar-fs@latest Workaround: Use the ignore option to filter non-file/directory entries; details: Configure the extract() function with an ignore predicate that rejects symbolic links, device files, and other special file types that could facilitate traversal attacks. This is a temporary mitigation and does not address all path traversal vectors.; code_example: tar.extract(dir, { ignore: (name, header) => header.type ! 'file' && header.type ! 'directory' }) Validation: Implement path validation before extraction; details: Independently validate all extracted file paths using path.resolve() and path.relative() to ensure paths remain within the target directory. Reject any paths that traverse outside the extraction root. Operational: Process untrusted tarballs in sandboxed environments; details: Extract user-supplied tarballs in isolated containers or chroot jails to limit damage from successful path traversal exploitation.

Affected VersionsENISA

tar-fs 3.0.0, < 3.0.9
tar-fs 2.0.0, < 2.1.3
tar-fs < 1.16.5

Affected Packages

npm tar-fs fix: 1.16.5, 2.1.3, 3.0.9

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in npm

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 module that provides filesystem bindings for tar-stream, enabling extraction and creation of tar archives. The vulnerability is rooted in CWE-22 (Improper Limitation of a Pathname to a Restricted Directory - 'Path Traversal'), where the extraction logic fails to properly validate and sanitize file paths extracted from tar headers before writing to the filesystem. Attackers can embed path traversal sequences (e.g., '../../../etc/passwd') or absolute paths in tar archive member headers, causing the extract() function to write files outside the intended extraction directory. Affected CPE identifiers include npm:tar-fs across all three major version branches (1.x, 2.x, 3.x) prior to their respective patch releases.

Know when the next one hits your stack

  • 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

GitHub Advisory PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
Ubuntu MEDIUM
Red Hat 7.3 HIGH

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

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

Lifecycle Timeline

2
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 02, 2025 - 20:15 nvd
HIGH 8.7

DescriptionGitHub Advisory

tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.

Executive ViewAI

Why It Matters

A path traversal vulnerability in tar-fs library versions prior to 3.0.9, 2.1.3, and 1.16.5 allows malicious tar archives to write files outside their intended extraction directory, potentially compromising system integrity and data confidentiality. Any application using vulnerable versions of this library to extract untrusted tar archives faces immediate risk of unauthorized file writes and system compromise.

Business Impact: High
Compensating Controls

Until patching is complete: (1) Implement strict input validation to reject suspicious tar archives with path traversal patterns; (2) Run tar extraction processes in isolated containers or VMs with restricted filesystem permissions; (3) Use the 'ignore' option in tar-fs configuration to exclude non-file/directory entries; (4) Apply principle of least privilege—limit extraction operations to dedicated service accounts with minimal filesystem write permissions; (5) Monitor filesystem write operations during extraction for anomalous activity outside intended directories.

Threat Intelligence Overview

EPSS Score
0.3%
Top 51% exploitable
Data Quality
6 sources
Confidence: High

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 0.3%
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
Yes
Human Impact
High

Priority Score

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

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

Ubuntu

Priority: Medium
node-tar-fs
Release Status Version
focal DNE -
jammy needs-triage -
noble needs-triage -
upstream needs-triage -
oracular ignored end of life, was needs-triage
questing needs-triage -
plucky ignored end of life, was needs-triage

Debian

node-tar-fs
Release Status Fixed Version Urgency
bullseye fixed 2.1.3-0+deb11u1 -
bullseye (security) fixed 2.1.3-0+deb11u2 -
bookworm, bookworm (security) fixed 2.1.3-0+deb12u2 -
trixie (security), trixie fixed 3.0.9+~cs2.0.4-1+deb13u1 -
forky, sid fixed 3.0.9+~cs2.0.4-2 -
bookworm fixed 2.1.3-0+deb12u1 -
(unstable) fixed 3.0.9+~cs2.0.4-1 -

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