Skip to main content
← All vulnerabilities
CVE-2024-12905GHSA-PQ67-2WWV-3XJX

An Improper Link Resolution Before File Access ("Link Following") and Improper Limitation of a Pathname to a Restricted Directory ("Path Tra

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.16.4, 2.1.2, 3.0.8, 3.0.7
1 on Exploit-DB, 1 proof of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Public exploit on Exploit-DB

    EDB-52268

  4. Record last updated

Affected versions

  • tar-fs

    From 0.0.0 · fixed in 1.16.4; From 2.0.0 · fixed in 2.1.2; From 3.0.0 · fixed in 3.0.8

  • tar-fsnpm

    fixed in 1.16.4

  • tar-fsnpm

    From 2.0.0 · fixed in 2.1.2

  • tar-fsnpm

    From 3.0.0 · fixed in 3.0.7

References 4

GitHub · mafintosh/tar-fs

seal.security

Exploit-DB

GitHub · theMcSam/CVE-2024-12905-PoC