Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2024-12905: Link following and path traversal in tar-fs

Published Mar 27, 2025 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.5High · v3.1
EPSS2.3%84th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
IdentifiersCVE-2024-12905CWE-22 · Improper Limitation of a Pathname…

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

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.

Mitigation

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.

Remediation

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.

FAQ

Frequently asked questions

Is CVE-2024-12905 exploited in the wild?
As of Oct 9, 2026, Mallory has no reports of CVE-2024-12905 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2024-12905?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2024-12905, the earliest disclosed Apr 24, 2025.
Is there a patch for CVE-2024-12905?
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.
How severe is CVE-2024-12905?
CVE-2024-12905 has a CVSS v3.1 score of 7.5 (High) and an EPSS score of 2.3% (84th percentile) as of Oct 9, 2026.
Activity feed

Recent activity

11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.