Skip to main content
CVE-2025-48387VulnerabilityPublished Updated

CVE-2025-48387: mafintosh tar-fs · Path Traversal

Affects mafintosh tar-fsSource CVE Database V5

0

Not known to be exploited · CVSS 8.7 High · fixed in 3.0.9 : patch mafintosh tar-fs soon.

Data as of 25 Oct 2026, 19:02 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 47% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 3.0.9, 2.1.3, 1.16.5
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

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

    Not in CISA KEV and no source reports exploitation

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

    No attack traffic recorded by OffSeq Mirage sensors

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 2026-10-25.

What to do

Upgrade mafintosh tar-fs to 3.0.9, 2.1.3 or 1.16.5.

Affected software

ProductAffectedFixed in
npmtar-fspkg:npm/tar-fsOther threatsAffected
  • <1.16.5
  • <2.1.3
  • <3.0.9
Fixed in
  • 1.16.5
  • 2.1.3
  • 3.0.9

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

AI-suggested

1. Immediately upgrade all instances of mafintosh tar-fs to versions 3.0.9, 2.1.3, or 1.16.5 or later, depending on the version branch in use. 2. Audit all software dependencies and build pipelines to identify usage of vulnerable tar-fs versions, including transitive dependencies in Node.js projects. 3. Implement strict validation and sanitization of all tarball inputs, especially those originating from untrusted or external sources. 4. Use the ignore option to skip non-file and non-directory entries as a temporary workaround if immediate upgrading is not feasible. 5. Monitor file system changes and logs for unusual write activities outside expected directories during tar extraction processes. 6. Employ application whitelisting and integrity monitoring to detect and prevent unauthorized file modifications. 7. Educate developers and DevOps teams about the risks of path traversal in archive extraction and enforce secure coding practices. 8. Consider isolating extraction processes in sandboxed or containerized environments to limit potential damage from exploitation.

Description

tar-fs provides filesystem bindings for tar-stream. Versions prior to 3.0.9, 2.1.3, and 1.16.5 have an issue where an extract can write outside the specified dir with a specific tarball. This has been patched in versions 3.0.9, 2.1.3, and 1.16.5. As a workaround, use the ignore option to ignore non files/directories.

References

Community reviews

Loading reviews…