Security mailing lists by PureSourceCode

CVE-2024-12905

HIGH 7.5CVSS 3.1

tar-fs Vulnerable to Link Following and Path Traversal via Extracting a Crafted tar File

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.

Published
27 Mar 2025
Last modified
10 Sep 2026
Assigned by
22e2d327-25fe-45d7-9f0c-dcd23b7108df
NVD status
Deferred
Weakness
CWE-22
Also known as
GHSA-pq67-2wwv-3xjx
Sources
NVDJSONOSV GHSA-pq67-2wwv-3xjxJSON

Scores

SourceScored byVersionScoreVector / decision
NVD 22e2d327-25fe-45d7-9f0c-dcd23b7108df (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm tar-fs < 1.16.4 1.16.4
OSV npm tar-fs >= 2.0.0, < 2.1.2 2.1.2
OSV npm tar-fs >= 3.0.0, < 3.0.7 3.0.7

References

History

  • 25 Nov 2026 20:57 UTC · NVD: first stored (published 27 Mar 2025)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 27 Mar 2025)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.