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

CVE-2025-48387 is fixed in node-tar-fs on 1 platform, first by DEBIAN-CVE-2025-48387, released June 2, 2025. It is not reported as exploited. Patch Radar priority: High.

- Web page: https://patchblox.com/security/cve/CVE-2025-48387
- Priority: High
- CVSS: 8.2 (Important)
- EPSS: 0.0058
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jun 2, 2025
- Weakness: Improper Limitation of a Pathname to a Restricted Directory (&#39;Path Traversal&#39;)
- Vendor advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-48387

## 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.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | node-tar-fs Debian 12.15 (bookworm) | 2.1.3-0+deb12u1 | [DEBIAN-CVE-2025-48387](https://patchblox.com/security/data/fix/linux/debian-cve-2025-48387.md) | Jun 2, 2025 |
| Linux | node-tar-fs Debian 13.5 (trixie) | 3.0.9+~cs2.0.4-1 | [DEBIAN-CVE-2025-48387](https://patchblox.com/security/data/fix/linux/debian-cve-2025-48387.md) | Jun 2, 2025 |
| Linux | node-tar-fs Debian 14 | 3.0.9+~cs2.0.4-1 | [DEBIAN-CVE-2025-48387](https://patchblox.com/security/data/fix/linux/debian-cve-2025-48387.md) | Jun 2, 2025 |
| Linux | node-tar-fs Ubuntu 22.04.1 LTS (jammy) | 2.1.1-6ubuntu0.22.04.1~esm1 | [node-tar-fs 2.1.1-6ubuntu0.22.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-jammy-node-tar-fs-2.1.1-6ubuntu0.22.04.1-esm1.md) | Sep 24, 2025 |
| Linux | node-tar-fs Ubuntu 24.04.5 LTS (noble) | 2.1.1-6ubuntu0.24.04.1~esm1 | [node-tar-fs 2.1.1-6ubuntu0.24.04.1~esm1](https://patchblox.com/security/data/fix/linux/ubuntu-noble-node-tar-fs-2.1.1-6ubuntu0.24.04.1-esm1.md) | Sep 24, 2025 |

---

Data as of 2026-11-08T13:06:02Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
