Skip to main content
← All vulnerabilities
CVE-2025-48387GHSA-8CJ5-5RVV-WF4V

tar-fs has issue where extract can write outside the specified dir with a specific tarball

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.16.5, 2.1.3, 3.0.9
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • mafintosh tar-fs

    fixed in 1.16.5; From 2.0.0 · fixed in 2.1.3; From 3.0.0 · fixed in 3.0.9

  • tar-fsnpm

    fixed in 1.16.5

  • tar-fsnpm

    From 2.0.0 · fixed in 2.1.3

  • tar-fsnpm

    From 3.0.0 · fixed in 3.0.9

References 3

GitHub · mafintosh/tar-fs

GitHub · google/security-research