Skip to main content
VulnerabilityPublished Updated

CVE-2025-48387: tar-fs can extract outside the specified dir with a specific tarball

Affects tar-fsSource GCVE Database

0
Compare
Authoritative record:CVE-2025-48387· High 8.7

Not known to be exploited · CVSS 8.7 High : upgrade to 1.16.5 soon.

Data as of 29 Oct 2026, 22:52 UTC

CVSS 4.0 base score
8.7High
How severe the flaw is on the 0–10 CVSS scale.

Thin evidence

One scorer or none
CVSS scores by source
CNA (GitHub_M)CVSS 4.08.7
Patch
Available – fixed in 1.16.5, 2.1.3, 3.0.9
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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 2 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.

What to do

Upgrade tar-fs to 1.16.5; tar-fs to 2.1.3; tar-fs to 3.0.9.

Affected software

ProductAffectedFixed in
npmtar-fsAffected
  • <1.16.5
Fixed in
  • 1.16.5
npmtar-fsAffected
  • >=2.0.0 <2.1.3
Fixed in
  • 2.1.3
npmtar-fsAffected
  • >=3.0.0 <3.0.9
Fixed in
  • 3.0.9

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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

References

Community reviews

Loading reviews…