Security
Headlines
HeadlinesLatestCVEs

Headline

GHSA-pq67-2wwv-3xjx: 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.7.

ghsa
#vulnerability#web#js#git#auth

Skip to content

Navigation Menu

    • GitHub Copilot

      Write better code with AI

    • Security

      Find and fix vulnerabilities

    • Actions

      Automate any workflow

    • Codespaces

      Instant dev environments

    • Issues

      Plan and track work

    • Code Review

      Manage code changes

    • Discussions

      Collaborate outside of code

    • Code Search

      Find more, search less

  • Explore

    • Learning Pathways
    • Events & Webinars
    • Ebooks & Whitepapers
    • Customer Stories
    • Partners
    • Executive Insights
    • GitHub Sponsors

      Fund open source developers

*   The ReadME Project
    
    GitHub community articles
    • Enterprise platform

      AI-powered developer platform

  • Pricing

Provide feedback

Saved searches****Use saved searches to filter your results more quickly

Sign up

  1. GitHub Advisory Database
  2. GitHub Reviewed
  3. CVE-2024-12905

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

High severity GitHub Reviewed Published Mar 27, 2025 to the GitHub Advisory Database • Updated Mar 28, 2025

Affected versions

< 1.16.4

>= 2.0.0, < 2.1.2

>= 3.0.0, < 3.0.7

Patched versions

1.16.4

2.1.2

3.0.8

Description

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.7.

References

  • https://nvd.nist.gov/vuln/detail/CVE-2024-12905
  • mafintosh/tar-fs@a1dd7e7

Published to the GitHub Advisory Database

Mar 27, 2025

Last updated

Mar 28, 2025

EPSS score

Related news

May

May Linux Patch Wednesday. This time: 1091 vulnerabilities. Of those, 716 are in the Linux Kernel. 🤯 5 vulnerabilities are exploited in the wild: 🔻 RCE – PHP CSS Parser (CVE-2020-13756). In AttackerKB, an exploit exists.🔻 DoS – Apache ActiveMQ (CVE-2025-27533). In AttackerKB, an exploit exists.🔻 SFB – Chromium (CVE-2025-4664). In CISA KEV.🔻 PathTrav – […]