CVE-2025-48387: tar-fs has issue where extract can write outside the specified dir with a specific tarball
Vulnerability summary
CVE-2025-48387 is a high (CVSS 8.7) vulnerability in mafintosh tar-fs. EPSS estimates a 0.59% chance of exploitation in the next 30 days, higher than 49.5% of scored vulnerabilities.
Severe, CVSS 8.7 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 5Timeline
- 02-06-2025PublishedVulnerability first disclosed.
- 03-11-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 7 sources · 1 version- OSV · UbuntuEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · DebianEcosystem advisory · calculated8.7HighCVSS: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
- OSV · WolfiEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · NpmEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- OSV · ChainguardEcosystem advisory · calculated8.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
- NVDNIST8.7HighCVSS: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
EPSS trend
Probability
0.59%
Chance of exploitation in the next 30 days
Percentile
50%
Versus all other CVEs
30-day change
Increase +0.01 pp
From 0.58% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard34 products
- code-server< 4.105.1-r1
- gitlab-rails-ce-18.1All versions (No fix recorded)
- gitlab-rails-ce-18.10All versions (No fix recorded)
- gitlab-rails-ce-18.11All versions (No fix recorded) | < 18.11.13-r0
- gitlab-rails-ce-18.5All versions (No fix recorded)
Wolfi8 products
- code-server< 4.105.1-r1
- jitsucom-jitsu< 2.10.0-r0
- jitsucom-jitsu-console< 2.10.0-r0
- jitsucom-jitsu-rotor< 2.10.0-r0
- sqlpad< 7.5.3-r2
Debian1 product
- node-tar-fs< 2.1.3-0+deb12u1 | < 3.0.9+~cs2.0.4-1
Mafintosh1 product
- tar-fs< 1.16.5 | ≥ 2.0.0, < 2.1.3 | ≥ 3.0.0, < 3.0.9
Npm1 product
- tar-fs< 1.16.5 | ≥ 2.0.0, < 2.1.3 | ≥ 3.0.0, < 3.0.9
Ubuntu1 product
- node-tar-fs< 2.1.1-6ubuntu0.22.04.1~esm1 | < 2.1.1-6ubuntu0.24.04.1~esm1
6 vendors · 46 products
References
11 links- github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4vX Refsource CONFIRMREPORTAdvisoryWEB
- github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3wX Refsource MISCAdvisoryWEB
- github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0fX Refsource MISCREPORTFIXWEB
Show all 11 references
- github.com/mafintosh/tar-fsPACKAGE