CVE-2025-48387
published high CVSS 4.0 · 8.7tar-fs has issue where extract can write outside the specified dir with a specific tarball
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| mafintosh | — | tar-fs< 1.16.5 · >= 2.0.0, < 2.1.3 · >= 3.0.0, < 3.0.9 | Affected | Not stated | GitHub_M |
| Debian | bullseye | node-tar-fs | Advisory build | 2.1.3-0+deb11u1 | DLA-4214-1 |
| Ubuntu | jammy | node-tar-fs | Advisory build | 2.1.1-6ubuntu0.22.04.1~esm1 | USN-8367-1 |
| Ubuntu | noble | node-tar-fs | Advisory build | 2.1.1-6ubuntu0.24.04.1~esm1 | USN-8367-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- 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
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| mafintosh | tar-fs | < 1.16.5 (affected)>= 2.0.0, < 2.1.3 (affected)>= 3.0.0, < 3.0.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
4- https://github.com/google/security-research/security/advisories/GHSA-xrg4-qp5w-2c3w
- https://github.com/mafintosh/tar-fs/commit/647447b572bc135c41035e82ca7b894f02b17f0f
- https://github.com/mafintosh/tar-fs/security/advisories/GHSA-8cj5-5rvv-wf4v
- https://lists.debian.org/debian-lts-announce/2025/06/msg00012.html
Provider assertions
3GitHub_M · cna
tar-fs has issue where extract can write outside the specified dir with a specific tarball
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 03d1d321344d56da92b14dc0ace6306b9c883579b10840fd0fa579b73ec6f170
- Ingested
- 23 Sep 2026, 08:50:38 UTC
- Source record
- Official CVE record