Skip to content
OpenAdvisories

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.

Affected products

VendorProductAffectedFixed
mafintosh tar-fs < 1.16.5, >= 2.0.0, < 2.1.3, >= 3.0.0, < 3.0.9 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 node-tar-fs 3.0.9+~cs2.0.4-1 —
Debian 13 node-tar-fs 3.0.9+~cs2.0.4-1 —
Debian 12 node-tar-fs 2.1.3-0+deb12u1 —
Debian 11 node-tar-fs 2.1.3-0+deb11u1 DLA-4214-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 node-tar-fs 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 USN-8367-1
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS node-tar-fs 2.1.1-6ubuntu0.24.04.1~esm1 USN-8367-1
Ubuntu Pro 22.04 LTS node-tar-fs 2.1.1-6ubuntu0.22.04.1~esm1 USN-8367-1

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 2 (CBL-Mariner) reaper 3.1.1-19 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling code-server 4.105.1-r1 —
Wolfi rolling jitsucom-jitsu +2 2.10.0-r0 —
Wolfi rolling sqlpad +1 7.5.3-r2 —
Wolfi rolling tileserver-gl +1 5.3.1-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm tar-fs < 1.16.5 1.16.5 GHSA-8cj5-5rvv-wf4v
npm tar-fs >= 2.0.0, < 2.1.3 2.1.3 GHSA-8cj5-5rvv-wf4v
npm tar-fs >= 3.0.0, < 3.0.9 3.0.9 GHSA-8cj5-5rvv-wf4v

Advisories 3

References