CVE-2025-48387: mafintosh tar-fs · Path Traversal
Affects mafintosh tar-fsSource CVE Database V5
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
- 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:NExploitation evidence
Disclosed: evidence found.
CVE published 2 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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
| Product | Affected | Fixed in |
|---|---|---|
npmtar-fspkg:npm/tar-fsOther threats | Affected
| Fixed in
|
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
- github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v (opens in a new tab)
- github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w (opens in a new tab)
- github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/06/msg00012.html (opens in a new tab)