CVE catalog

CVE-2024-12905

tar-fs vulnerabilities

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
Source
[NVD] · [CVE record]
EPSS
2.30% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-tar-fssid3.1.2+~cs2.0.4-1fixed
Debiannode-tar-fsforky3.1.2+~cs2.0.4-1fixed
Debiannode-tar-fstrixie3.0.9+~cs2.0.4-1+deb13u1fixed
Debiannode-tar-fstrixie-security3.0.9+~cs2.0.4-1+deb13u1fixed
Debiannode-tar-fsbookworm2.1.3-0+deb12u2fixed
Debiannode-tar-fsbookworm-security2.1.3-0+deb12u2fixed
Ubuntunode-tar-fsnoble2.1.1-6ubuntu0.24.04.1~esm1fixed
Ubuntunode-tar-fspro2.1.1-6vulnerable
Ubuntunode-tar-fspro2.1.1-6ubuntu0.24.04.1~esm1fixed
Ubuntunode-tar-fs25.102.1.1-6vulnerable
Ubuntunode-tar-fs25.103.0.8+~cs2.0.4-1vulnerable
Ubuntunode-tar-fs25.103.0.9+~cs2.0.4-1vulnerable
Ubuntunode-tar-fs25.103.0.9+~cs2.0.4-1+deb13u1build0.25.10.1fixed
Ubuntunode-tar-fspro2.1.1-6vulnerable
Ubuntunode-tar-fspro2.1.1-6ubuntu0.24.04.1~esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-tar-fssourcesid3.0.8+~cs2.0.4-1not yet assignedNot reported[1101501]
Debiannode-tar-fssourceforky3.0.8+~cs2.0.4-1not yet assignedNot reported[1101501]
Debiannode-tar-fssourcetrixie3.0.8+~cs2.0.4-1not yet assignedNot reported[1101501]
Debiannode-tar-fssourcebookworm2.1.3-0+deb12u1not yet assignedNot reported[1101501]
Ubuntunode-tar-fsdebnoble2.1.1-6ubuntu0.24.04.1~esm1Not reportedNot reportedNot reported
Ubuntunode-tar-fsdebpro2.1.1-6ubuntu0.24.04.1~esm1Not reportedUSN-8367-1Not reported
Ubuntunode-tar-fsdeb25.103.0.9+~cs2.0.4-1+deb13u1build0.25.10.1Not reportedUSN-8367-1Not reported
Ubuntunode-tar-fsdebpro2.1.1-6ubuntu0.24.04.1~esm1Not reportedUBUNTU-CVE-2024-12905Not reported

[Debian bug #1101501]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [node-tar-fs]Unknown
    Details (4)
    • 2.1.3-0+deb12u2 · all · bookworm

      Fixed · Fixed: 2.1.3-0+deb12u1

      usn · node-tar-fs · debian · bookworm; usn · node-tar-fs · debian · 12

    • 2.1.3-0+deb12u2 · all · bookworm

      Fixed · Fixed: 2.1.3-0+deb12u1

      usn · node-tar-fs · debian · bookworm; usn · node-tar-fs · debian · 12

    • 2.1.3-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.1.3-0+deb12u1

      usn · node-tar-fs · debian · bookworm; usn · node-tar-fs · debian · 12

    • 2.1.3-0+deb12u2 · all · bookworm-security

      Fixed · Fixed: 2.1.3-0+deb12u1

      usn · node-tar-fs · debian · bookworm; usn · node-tar-fs · debian · 12

[Debian 13 (Trixie)]

  • [node-tar-fs]Unknown
    Details (4)
    • 3.0.9+~cs2.0.4-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.0.8+~cs2.0.4-1

      usn · node-tar-fs · debian · 13

    • 3.0.9+~cs2.0.4-1+deb13u1 · all · trixie

      Fixed · Fixed: 3.0.8+~cs2.0.4-1

      usn · node-tar-fs · debian · 13

    • 3.0.9+~cs2.0.4-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 3.0.8+~cs2.0.4-1

      usn · node-tar-fs · debian · 13

    • 3.0.9+~cs2.0.4-1+deb13u1 · all · trixie-security

      Fixed · Fixed: 3.0.8+~cs2.0.4-1

      usn · node-tar-fs · debian · 13

Observed:

References