CVEfocus › CVE database › CVE-2024-12905

CVE-2024-12905

CVSS 7.5 HighEPSS 2.6% (higher than 86% of CVEs)Published 2025-03-27Updated 2025-11-03Assigner: seal

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.

CWE-22CWE-59

What to do

Fixed builds are available from Debian, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
2Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04node-tar-fsNot affected
vulnerable_code_not_present
Ubuntu 25.10node-tar-fsNot affected
vulnerable_code_not_present
Ubuntu 24.04node-tar-fsFix pending2.1.1-6ubuntu0.24.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12905
Ubuntu 22.04node-tar-fsFix pending2.1.1-6ubuntu0.22.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2024-12905
Debian 14node-tar-fsFixed3.0.8+~cs2.0.4-1DEBIAN-CVE-2024-12905
Debian 13node-tar-fsFixed3.0.8+~cs2.0.4-1DEBIAN-CVE-2024-12905
Debian 12node-tar-fsFixed2.1.3-0+deb12u1DEBIAN-CVE-2024-12905
npm librarytar-fsFixed3.0.7GHSA-pq67-2wwv-3xjx

What the vendor says

As published in the CVE record by seal, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.