VDB

CVE-2024-12905

CVE-2024-12905 PUBLISHED CVSS 7.5 HIGH

tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

Reported by seal · Published March 27, 2025

tar-fs is fixed in 3.0.8, 3.0.7, 2.1.2 and 1 more (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
tar-fsnpm3.0.8, 3.0.7, 2.1.2, 1.16.4
kibana-7Chainguard7.17.28-r41
code-serverChainguard4.105.1-r1
code-serverWolfi4.105.1-r1
tileserver-gl-fipsChainguard5.2.0-r1
kibana-8Chainguard8.17.4-r41
tileserver-glChainguard5.2.0-r1
sqlpadWolfi7.5.3-r1
sqlpadChainguard7.5.3-r1
tileserver-glWolfi5.2.0-r1

Risk scores

CVSS 3.1
7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
0.0.0, 2.0.0, 3.0.0
0.0.0, 2.0.0, 3.0.0

Timeline

  • Mar 27, 2025 CVE Published
  • Mar 27, 2025 PoC Published (9 in total, the first dated here)
  • Mar 28, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 29, 2025 Coalition ESS Score (13 in total, the first dated here)
  • Nov 3, 2025 CVE Updated
  • Mar 10, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-12905
vulnetix vdb fixes CVE-2024-12905

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-12905/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›