Live threats

All CVEs

CVE-2024-12905

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
2.6%
probability of exploitation in 30 days · percentile 86
Auth required
No
Published
Mar 27, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22, CWE-59
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

What happens

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal"). This vulnerability occurs when extracting a maliciously crafted tar file, which can result in unauthorized file writes or overwrites outside the intended extraction directory. The issue is associated with index.js in the tar-fs package. This issue affects tar-fs: from 0.0.0 before 1.16.4, from 2.0.0 before 2.1.2, from 3.0.0 before 3.0.8.

Original NVD text.

What to do

  1. Check whether you run any of the affected products and follow the vendor advisory.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm tar-fs < 1.16.4 1.16.4 npm install tar-fs@1.16.4
npm tar-fs ≥ 2.0.0 < 2.1.2 2.1.2 npm install tar-fs@2.1.2
npm tar-fs ≥ 3.0.0 < 3.0.7 3.0.7 npm install tar-fs@3.0.7

Per OSV / GitHub Advisories (GHSA-pq67-2wwv-3xjx). Check the version in your lockfile before upgrading.

Official sources

References

Links published by the sources. Open them with care.