CVE-2025-48387
tar-fs has issue where extract can write outside the specified dir with a specific tarball
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
CVE List Score used
8.7
tar-fs has issue where extract can write outside the specified dir with a specific tarball
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.
- Record
CVE-2025-48387- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2025-16687
8.7
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.
- Record
EUVD-2025-16687- 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 - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-8cj5-5rvv-wf4v
8.7
tar-fs can extract outside the specified dir with a specific tarball
Impact
v3.0.8, v2.1.2, v1.16.4 and below
Patches
Has been patched in 3.0.9, 2.1.3, and 1.16.5
Workarounds
You can use the ignore option to ignore non files/directories.
ignore (_, header) {
// pass files & directories, ignore e.g. symlinks
return header.type !== 'file' && header.type !== 'directory'
}
Credit
Thank you Caleb Brown from Google Open Source Security Team for reporting this in detail.
- Record
GHSA-8cj5-5rvv-wf4v- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
NVD
8.7
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.
- Record
CVE-2025-48387- 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/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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSV
8.7
tar-fs has issue where extract can write outside the specified dir with a specific tarball
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.
- Record
CVE-2025-48387- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2025-48387
8.7
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.
- Record
DEBIAN-CVE-2025-48387- 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/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 - Updated
- 2026-11-02
Show 9 moreShow less
OSVGHSA-8cj5-5rvv-wf4v
8.7
tar-fs can extract outside the specified dir with a specific tarball
Impact
v3.0.8, v2.1.2, v1.16.4 and below
Patches
Has been patched in 3.0.9, 2.1.3, and 1.16.5
Workarounds
You can use the ignore option to ignore non files/directories.
ignore (_, header) {
// pass files & directories, ignore e.g. symlinks
return header.type !== 'file' && header.type !== 'directory'
}
Credit
Thank you Caleb Brown from Google Open Source Security Team for reporting this in detail.
- Record
GHSA-8cj5-5rvv-wf4v- 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 - Weakness
- CWE-22
- Updated
- 2026-11-02
OSVUBUNTU-CVE-2025-48387
8.7
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.
- Record
UBUNTU-CVE-2025-48387- 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 - Updated
- 2026-11-02
OSVAZL-62236 No score
CVE-2025-48387 affecting package reaper for versions less than 3.1.1-19
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.
- Record
AZL-62236- Updated
- 2026-11-02
OSVCLSA-2026-1774484497 No score
TuxCare security update for tar-fs (5 CVEs)
TuxCare rebuilt tar-fs to address 5 CVEs. Fixed in 1.5.1-tuxcare.1.
- Record
CLSA-2026-1774484497- Updated
- 2026-11-02
OSVCLSA-2026-1788560472 No score
TuxCare security update for tar-fs (3 CVEs)
TuxCare rebuilt tar-fs to address 3 CVEs. Fixed in 3.0.4-tuxcare.1.
- Record
CLSA-2026-1788560472- Updated
- 2026-11-02
OSVCLSA-2026-1790963499 No score
TuxCare security update for tar-fs (3 CVEs)
TuxCare rebuilt tar-fs to address 3 CVEs. Fixed in 2.1.1-tuxcare.1.
- Record
CLSA-2026-1790963499- Updated
- 2026-11-02
OSVMGASA-2025-0194 No score
Updated yarnpkg packages fix security vulnerabilities
CVE-2024-37890 yarnpkg: denial of service when handling a request with many HTTP headers. CVE-2024-48949 yarnpkg: Missing Validation in Elliptic's EDDSA Signature Verification. CVE-2024-12905 yarnpkg: link following and path traversal via maliciously crafted tar file And other vulnerabilities in the yarn's bundled nodejs components are fixed too, see the references.
- Record
MGASA-2025-0194- Updated
- 2026-11-02
OSVROOT-APP-NPM-CVE-2025-48387 No score
CVE-2025-48387 in tar-fs - Patched by Root
Root has patched CVE-2025-48387 in the tar-fs package for Root:npm. Multiple fixed versions available.
- Record
ROOT-APP-NPM-CVE-2025-48387- Updated
- 2026-11-06
OSVUSN-8367-1 No score
node-tar-fs vulnerabilities
It was discovered that tar-fs did not properly limit paths when extracting crafted tar files. An attacker could possibly use this issue to write or overwrite files outside the intended extraction directory. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2024-12905)
It was discovered that tar-fs did not properly validate extraction paths for certain crafted tar archives. An attacker could possibly use this issue to write files outside the intended extraction directory. This issue only affected Ubuntu 22.04 LTS and Ubuntu 24.04 LTS. (CVE-2025-48387)
It was discovered that tar-fs had a symlink validation bypass when extracting crafted tar files. An attacker could possibly use this issue to write files outside the intended extraction directory. (CVE-2025-59343)
- Record
USN-8367-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
tar-fsnpm |
before 1.16.5 | 1.16.5 |
tar-fsnpm |
2.0.0 up to 2.1.3 | 2.1.3 |
tar-fsnpm |
3.0.0 up to 3.0.9 | 3.0.9 |
reaperAzure Linux:2 |
before 3.1.1-19 | 3.1.1-19 |
tar-fsTuxCare:npm From an advisory covering 4 CVEs |
1.5.1-tuxcare.0 up to 1.5.1-tuxcare.1, plus listed versions 1.5.1 |
1.5.1-tuxcare.1 |
tar-fsTuxCare:npm From an advisory covering 3 CVEs |
3.0.4-tuxcare.0 up to 3.0.4-tuxcare.1, plus listed versions 3.0.4 |
3.0.4-tuxcare.1 |
tar-fsTuxCare:npm From an advisory covering 3 CVEs |
2.1.1-tuxcare.0 up to 2.1.1-tuxcare.1, plus listed versions 2.1.1 |
2.1.1-tuxcare.1 |
node-tar-fsDebian:12 |
before 2.1.3-0+deb12u1, plus listed versions 2.1.1-6 |
2.1.3-0+deb12u1 |
node-tar-fsDebian:13 |
before 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 |
node-tar-fsDebian:14 |
before 3.0.9+~cs2.0.4-1 | 3.0.9+~cs2.0.4-1 |
Show 9 moreShow less
| Package | Affected | Fixed |
|---|---|---|
node-tar-fsDebian:11 From an advisory covering 2 CVEs |
before 2.1.3-0+deb11u1, plus listed versions 2.1.1-22.1.1-32.1.1-42.1.1-6 |
2.1.3-0+deb11u1 |
yarnpkgMageia:9 From an advisory covering 11 CVEs |
before 1.22.22-0.10.9.2.1.mga9 | 1.22.22-0.10.9.2.1.mga9 |
tar-fsRoot:npm |
before 3.0.8-aikido.2 | 3.0.8-aikido.23.0.6-aikido.22.0.0-aikido.42.1.2-aikido.21.16.3-aikido.13.0.9-aikido.2 |
@rootio/tar-fsRoot:npm |
before 3.0.8-root.io.1 | 3.0.8-root.io.13.0.6-root.io.12.0.0-root.io.22.0.0-root.io.33.0.8-root.io.22.0.0-root.io.42.1.2-root.io.23.0.6-root.io.21.16.3-root.io.13.0.9-root.io.13.0.9-root.io.2 |
node-tar-fsUbuntu:Pro:22.04:LTS |
before 2.1.1-6ubuntu0.22.04.1~esm1, plus listed versions 2.1.1-22.1.1-42.1.1-6 |
2.1.1-6ubuntu0.22.04.1~esm1 |
node-tar-fsUbuntu:Pro:24.04:LTS |
before 2.1.1-6ubuntu0.24.04.1~esm1, plus listed versions 2.1.1-6 |
2.1.1-6ubuntu0.24.04.1~esm1 |
node-tar-fsUbuntu:Pro:22.04:LTS From an advisory covering 3 CVEs |
before 2.1.1-6ubuntu0.22.04.1~esm1, plus listed versions 2.1.1-22.1.1-42.1.1-6 |
2.1.1-6ubuntu0.22.04.1~esm1 |
node-tar-fsUbuntu:Pro:24.04:LTS From an advisory covering 3 CVEs |
before 2.1.1-6ubuntu0.24.04.1~esm1, plus listed versions 2.1.1-6 |
2.1.1-6ubuntu0.24.04.1~esm1 |
node-tar-fsUbuntu:25.10 From an advisory covering 3 CVEs |
before 3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1, plus listed versions 2.1.1-63.0.8+~cs2.0.4-13.0.9+~cs2.0.4-1 |
3.0.9+~cs2.0.4-1+deb13u1build0.25.10.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | OSV | |
| affected, facts | ||
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2025-48387 is a high vulnerability (CVSS 8.7) in Mafintosh Tar-fs, published June 2, 2025. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.58%, the 47th percentile. Fixed in tar-fs 1.16.5.
References
github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v
github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w
github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f
lists.debian.org/debian-lts-announce/2025/06/msg00012.html
nvd.nist.gov/vuln/detail/CVE-2025-48387
github.com/advisories/GHSA-8cj5-5rvv-wf4v
Show 12 moreShow less
github.com/CVEProject/cvelistV5/tree/main/cves/2025/48xxx/CVE-2025-48387.json
security-tracker.debian.org/tracker/CVE-2025-48387
github.com/mafintosh/tar-fs
advisories.mageia.org/MGASA-2025-0194.html
bugs.mageia.org/show_bug.cgi?id=33674
lists.fedoraproject.org/archives/list/[email protected]/message/2UGLXZO6VIHGIITQTEUY5Q5YCAP2A4ZP
lists.fedoraproject.org/archives/list/[email protected]/message/VEDIJM7VQF4Q2L2KKQ6KJ2WZNR7AXYQD
ubuntu.com/security/CVE-2025-48387
cve.org/CVERecord?id=CVE-2025-48387
ubuntu.com/security/notices/USN-8367-1
ubuntu.com/security/CVE-2024-12905
ubuntu.com/security/CVE-2025-59343