VDB

CVE-2025-48387

CVE-2025-48387 PUBLISHED CVSS 8.7 HIGH

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

Reported by github_m · Published June 2, 2025

tar-fs is fixed in 3.0.9, 2.1.3 and 1.16.5 (npm)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
tar-fsnpm3.0.9, 2.1.3, 1.16.5
code-serverWolfi4.105.1-r1
code-serverChainguard4.105.1-r1
tileserver-glChainguard5.3.1-r3
tileserver-gl-fipsChainguard5.3.1-r2
sqlpadWolfi7.5.3-r2
gitlab-rails-ce-fips-19.0Chainguard19.0.9-r3
gitlab-rails-ce-fips-18.9Chainguard18.9.8-r8
gitlab-rails-ce-19.2Chainguard19.2.5-r2
gitlab-rails-ce-fips-18.1Chainguard18.1.6-r15
gitlab-rails-ce-19.1Chainguard19.1.7-r6
gitlab-rails-ce-19.3Chainguard19.3.1-r6

7 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 4.0
8.7
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

Affected products

VendorProductVersions
mafintoshtar-fs< 1.16.5, >= 2.0.0, < 2.1.3, >= 3.0.0, < 3.0.9
wolficode-server0
chainguardcode-server0
chainguardtileserver-gl0
chainguardtileserver-gl-fips0
wolfisqlpad0
chainguardgitlab-rails-ce-fips-19.00
chainguardgitlab-rails-ce-fips-18.90
chainguardgitlab-rails-ce-19.20
chainguardgitlab-rails-ce-fips-18.10
chainguardgitlab-rails-ce-19.10
chainguardgitlab-rails-ce-19.30
chainguardjitsucom-jitsu0
chainguardsqlpad0
chainguardgitlab-rails-ce-fips-18.100
npmtar-fs0, 3.0.0, 2.0.0
chainguardkibana-70
chainguardgitlab-rails-ce-fips-19.10
wolfitileserver-gl0
wolfijitsucom-jitsu0

…and 4 more

Timeline

  • Jun 2, 2025 CVE Published
  • Jun 3, 2025 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory
  • Apr 18, 2026 PoC Published
  • Jun 6, 2026 Coalition ESS Score
  • Jun 17, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-48387
vulnetix vdb fixes CVE-2025-48387

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-48387/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›