CVE-2024-12905

tar-fs: link following and path traversal via maliciously crafted tar file

Published Mar 27, 2025 CVSS 3.1 · 7.5 High EPSS 2.3% KEV · Not listed
Description
An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package.

This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4214-1 node-tar-fs security update
EUVD EUVD EUVD-2024-54315 tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File
Github GHSA Github GHSA GHSA-pq67-2wwv-3xjx tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File
Ubuntu USN Ubuntu USN USN-8367-1 tar-fs vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:rhdh:1.5::el9
Type Values Removed Values Added
First Time appeared Redhat rhdh
CPEs cpe:/a:redhat:rhdh:1.6::el9
Vendors & Products Redhat rhdh
Type Values Removed Values Added
First Time appeared Redhat
Redhat openshift Devspaces
CPEs cpe:/a:redhat:openshift_devspaces:3::el9
Vendors & Products Redhat
Redhat openshift Devspaces
Type Values Removed Values Added
Title tar-fs: link following and path traversal via maliciously crafted tar file
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package. This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.
Weaknesses CWE-22
CWE-59
References
Metrics cvssV3_1

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

Weaknesses

Sources

Status
PUBLISHED
Assigner
seal
Published
Updated
Nov 3, 2025, 7:29 PM
Reserved
Dec 23, 2024, 1:53 PM
Status
Deferred
Published
Mar 27, 2025, 5:15 PM
Modified
Jun 17, 2026, 7:00 AM
Severity
Important
Public date
Mar 27, 2025, 4:25 PM