p PatchFirst

CVE-2025-48387

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

This page contains facts from public vulnerability sources. Check the original advisory before updating.

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.

CVSS 8.7 · High · EPSS 0.6% · Fix available

Published
Updated

Stack: system · node

Affected products and versions

  • tar-fs

    Versions
    • < 1.16.5: Affected
    • >= 2.0.0, < 2.1.3: Affected
    • >= 3.0.0, < 3.0.9: Affected

    No fix published

  • node-tar-fs Debian:12

    Versions
    • 2.1.1-6
    Affected ranges
    • ECOSYSTEM: < 2.1.3-0+deb12u1

    Update to 2.1.3-0+deb12u1

  • node-tar-fs Debian:13

    Affected ranges
    • ECOSYSTEM: < 3.0.9+~cs2.0.4-1

    Update to 3.0.9+~cs2.0.4-1

  • node-tar-fs Debian:14

    Affected ranges
    • ECOSYSTEM: < 3.0.9+~cs2.0.4-1

    Update to 3.0.9+~cs2.0.4-1

  • tar-fs npm

    Affected ranges
    • SEMVER: < 1.16.5

    Update to 1.16.5

  • tar-fs npm

    Affected ranges
    • SEMVER: ≥ 2.0.0, < 2.1.3

    Update to 2.1.3

  • tar-fs npm

    Affected ranges
    • SEMVER: ≥ 3.0.0, < 3.0.9

    Update to 3.0.9

  • node-tar-fs Ubuntu:Pro:22.04:LTS

    Versions
    • 2.1.1-2
    • 2.1.1-4
    • 2.1.1-6
    Affected ranges
    • ECOSYSTEM: < 2.1.1-6ubuntu0.22.04.1~esm1

    Update to 2.1.1-6ubuntu0.22.04.1~esm1

  • node-tar-fs Ubuntu:Pro:24.04:LTS

    Versions
    • 2.1.1-6
    Affected ranges
    • ECOSYSTEM: < 2.1.1-6ubuntu0.24.04.1~esm1

    Update to 2.1.1-6ubuntu0.24.04.1~esm1

Original sources

Check your server →