cve.bz

CVE-2025-48387 mafintosh tar-fs: Path traversal

8.7 highEPSS 0.6%Fix available

High (8.7) in mafintosh tar-fs. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in tar-fs 1.16.5, 2.1.3, 3.0.9.

On this page
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.

Severity

CVSS 4.0

8.7 high
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
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 49th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-06-03. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-48387 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-48387?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-48387?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-48387 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

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

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8cj5-5rvv-wf4vnpmtar-fs<1.16.51.16.5
GHSA-8cj5-5rvv-wf4vnpmtar-fs>=2.0.0 <2.1.32.1.3
GHSA-8cj5-5rvv-wf4vnpmtar-fs>=3.0.0 <3.0.93.0.9

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11node-tar-fs2.1.3-0+deb11u1DLA-4214-1
Debian12node-tar-fs2.1.3-0+deb12u1DEBIAN-CVE-2025-48387
Debian13, 14node-tar-fs3.0.9+~cs2.0.4-1DEBIAN-CVE-2025-48387
Ubuntu25.10node-tar-fs3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1USN-8367-1
UbuntuPro:22.04:LTSnode-tar-fs2.1.1-6ubuntu0.22.04.1~esm1UBUNTU-CVE-2025-48387 USN-8367-1
UbuntuPro:24.04:LTSnode-tar-fs2.1.1-6ubuntu0.24.04.1~esm1UBUNTU-CVE-2025-48387 USN-8367-1
Azure Linux2reaper3.1.1-19AZL-62236

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability in tar-fs is Important not a moderate flaw, primarily due to its ability to bypass directory confinement during tarball extraction. The core issue—path traversal via crafted archive entries—allows attackers to write files outside the intended extraction directory, potentially overwriting system files, configuration files, or injecting malicious scripts into sensitive locations. Unlike moderate flaws that may require specific conditions or user interaction to exploit, this vulnerability can be triggered automatically in server-side environments that extract user-supplied tar files (e.g., CI/CD systems, deployment tools, or file upload handlers). Its exploitation could lead to remote code execution, privilege escalation, or denial of service, depending on the context.

Red Hat's mitigation

Mitigation is either unavailable or does not meet Red Hat Product Security standards for usability, deployment, applicability, or stability.

ProductPackageStateAdvisory
Red Hat Developer Hub 1.5rhdh/rhdh-hub-rhel9:1.5.3-1752159545Fixed 2025-07-14RHSA-2025:10992
Red Hat Developer Hub 1.6rhdh/rhdh-hub-rhel9:1.6.2-1750887220Fixed 2025-06-30RHSA-2025:9966
Red Hat Developer Hub 1.7rhdh/rhdh-hub-rhel9:1.7.0-1754936470Fixed 2025-08-19RHSA-2025:14090
Red Hat OpenShift Dev Spaces (RHOSDS) 3.23devspaces/code-rhel9:3.23-1757618807Fixed 2025-09-15RHSA-2025:15847
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-api-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-db-migration-rhel8Affected
OpenShift Pipelinesopenshift-pipelines/pipelines-hub-ui-rhel8Affected
OpenShift Serverlessopenshift-serverless-1/kn-backstage-plugins-eventmesh-rhel8Will not fix
Red Hat Developer Hub 1rhdh/rhdh-rhel9-operatorNot affected
Red Hat Fuse 7io.syndesis-syndesis-parentWill not fix
Red Hat JBoss Enterprise Application Platform 8org.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform Expansion Packorg.keycloak-keycloak-parentNot affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-dashboard-rhel8Not affected
Red Hat OpenShift AI (RHOAI)rhoai/odh-rhel8-operatorNot affected
Red Hat OpenShift AI (RHOAI)rhods/odh-rhel8-operatorNot affected
Red Hat OpenShift Dev Spacesdevspaces/code-rhel8Not affected
Red Hat OpenShift Dev Spacesdevspaces/pluginregistry-rhel8Not affected
Red Hat OpenShift Dev Spacesdevspaces/pluginregistry-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-48387.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON