Skip to content
Fencer Vulns
high 8.7

CVE-2025-48387 json

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

published 2025-06-02 17 mo ago modified 2026-09-10 1 mo ago also EUVD-2025-16687 , GHSA-8cj5-5rvv-wf4v

cvss
8.7
version 4.0, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.6%
EPSS 0.6% chance of exploitation in 30 days, percentile 47%
public exploits
0
none known

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.

Patch / fix

  • npm tar-fs 1.16.5, 2.1.3, 3.0.9
  • tar-fs_project tar-fs 1.16.5, 2.1.3, 3.0.9
  • node-tar-fs Debian 12 2.1.3-0+deb12u1
  • node-tar-fs Debian 14, Debian 13 3.0.9+~cs2.0.4-1

debian advisories DEBIAN-CVE-2025-48387

  • node-tar-fs Ubuntu Pro 22.04 LTS 2.1.1-6ubuntu0.22.04.1~esm1
  • node-tar-fs Ubuntu Pro 24.04 LTS 2.1.1-6ubuntu0.24.04.1~esm1

ubuntu advisories UBUNTU-CVE-2025-48387

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • reaper CBL-Mariner 2.0 3.1.1-19

azure linux advisories AZL-62236

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2025-48387 updated cvss 7.3

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

  • Red Hat OpenShift Pipelines openshift-pipelines/pipelines-hub-ui-rhel8, openshift-pipelines/pipelines-hub-api-rhel8, openshift-pipelines/pipelines-hub-db-migration-rhel8
    affected: workaround, no fix available “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.”
  • Red Hat OpenShift Serverless openshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8 Red Hat Fuse 7 io.syndesis-syndesis-parent
    affected: workaround, no fix planned “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.”
  • Red Hat OpenShift Dev Spaces devspaces/pluginregistry-rhel9
    affected: workaround, no fix available “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.”
  • Red Hat Developer Hub 1.5 rhdh 1.5.3-1752159545
    fixed: vendor fix “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.” RHSA-2025:10992
  • Red Hat Developer Hub 1.6 rhdh 1.6.2-1750887220
    fixed: vendor fix “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.” RHSA-2025:9966
  • Red Hat Developer Hub 1.7 rhdh 1.7.0-1754936470
    fixed: vendor fix “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.” RHSA-2025:14090
  • Red Hat OpenShift Dev Spaces (RHOSDS) 3.23 devspaces 3.23-1757618807
    fixed: vendor fix “Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.” RHSA-2025:15847
  • Red Hat Developer Hub 1 rhdh/rhdh-rhel9-operator
    not affected: component not present
show 3 more
  • Red Hat Developer Hub 1.5 rhdh 1.5.3-1752159639, rhdh 1.5.3-1752166658 Red Hat Developer Hub 1.6 rhdh 1.6.2-1750886883, rhdh 1.6.2-1750938107 Red Hat Developer Hub 1.7 rhdh 1.7.0-1754935808, rhdh 1.7.0-1754942441
    not affected: vulnerable code not present
  • Red Hat JBoss Enterprise Application Platform 8 org.keycloak-keycloak-parent
    not affected: component not present
  • Red Hat JBoss Enterprise Application Platform Expansion Pack org.keycloak-keycloak-parent Red Hat OpenShift AI (RHOAI) rhoai/odh-rhel8-operator, rhods/odh-rhel8-operator, rhoai/odh-dashboard-rhel8 Red Hat OpenShift Dev Spaces devspaces/code-rhel8, devspaces/pluginregistry-rhel8 Red Hat OpenShift Dev Spaces (RHOSDS) 3.23 devspaces 3.23-1756504388, devspaces 3.23-1756506343, devspaces 3.23-1756507311, devspaces 3.23-1756509551, devspaces 3.23-1756753588, devspaces 3.23-1756828766, +8 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
partial
Assessed
17 mo ago

Exploit prediction

0.58% chance of exploitation in the next 30 days, higher than 47% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 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
CNA 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Affected packages

ecosystem package affected fixed in
npm tar-fs
<1.16.5
>=2.0.0, <2.1.3
>=3.0.0, <3.0.9
1.16.5
2.1.3
3.0.9

Affected products

  • mafintosh tar-fs

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.