Skip to main content
VulnerabilityPublished Updated

CVE-2024-12905: tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

Affects tar-fsSource GCVE Database

0
Compare
Authoritative record:CVE-2024-12905· High 7.5

Public exploit available (Exploit-DB) · CVSS 7.5 High : upgrade to 1.16.4 as a priority.

Data as of 30 Oct 2026, 02:29 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (seal)CVSS 3.17.5
Patch
Available – fixed in 1.16.4, 2.1.2, 3.0.7
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Exploitation evidence

t = 0 is the CVE’s publication on cve.org

  1. Disclosed: evidence found.

    CVE published 27 Mar 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  4. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

Timeline

  1. CVE ID reserved

    by Seal Security

    , 94 days before disclosure

  2. CVE published

    on cve.org

    , t = 0

  3. First Exploit-DB entry (opens in a new tab)

    tar-fs 3.0.0 - Arbitrary File Write/Overwrite

    , 26 days after disclosure

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade tar-fs to 1.16.4; tar-fs to 2.1.2; tar-fs to 3.0.7.

Affected software

ProductAffectedFixed in
npmtar-fsAffected
  • <1.16.4
Fixed in
  • 1.16.4
npmtar-fsAffected
  • >=2.0.0 <2.1.2
Fixed in
  • 2.1.2
npmtar-fsAffected
  • >=3.0.0 <3.0.7
Fixed in
  • 3.0.7

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Fixed versions 1.16.4, 2.1.2, and 3.0.7 of tar-fs have been released and should be applied to remediate this vulnerability. Users should upgrade to these versions or later to prevent exploitation. No additional mitigations are specified by the vendor advisory.

Description

The tar-fs package contains a vulnerability (CVE-2024-12905) involving improper link resolution and path traversal during extraction of crafted tar files. This flaw allows an attacker to write or overwrite files outside the intended extraction directory, potentially leading to unauthorized file modifications. The issue affects multiple versions of tar-fs prior to fixed releases 1.16.4, 2.1.2, and 3.0.7.

References

Community reviews

Loading reviews…