Link following and path traversal in tar-fs
CVE-2024-12905 is a link-following and path-traversal vulnerability in the Node.js tar-fs package. Improper link resolution and insufficient restriction of extraction paths allow a maliciously crafted tar archive to write or overwrite files outside the intended extraction directory. Affected versions are 0.0.0 through versions before 1.16.4, 2.0.0 through versions before 2.1.2, and 3.0.0 through versions before 3.0.8.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation permits unauthorized file creation or overwriting outside the intended extraction directory, compromising filesystem integrity. Arbitrary code execution, information disclosure, and denial of service are not specifically established for this vulnerability.
If you can’t patch tonight, do this now.
Until patched versions are deployed, avoid extracting untrusted tar archives with vulnerable tar-fs versions and restrict extraction to trusted inputs and tightly controlled environments. Disable unnecessary archive-upload functionality and restrict application write access to designated directories. These precautions reduce exposure; no complete workaround is documented.
Patch, then assume compromise.
Upgrade tar-fs to 1.16.4 or later in the 1.x branch, 2.1.2 or later in the 2.x branch, or 3.0.8 or later in the 3.x branch, and update dependent applications or packages. Fixed-version information conflicts for the 3.x branch: one advisory lists 3.0.7, whereas the vulnerability description identifies versions before 3.0.8 as affected; use 3.0.8 or later. For affected Red Hat OpenShift Dev Spaces installations, apply the 3.20.0 security update or a subsequent applicable release, after installing prerequisite errata. Applicable Tanzu updates include .NET Core Buildpack 2.4.71 or later.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.