tar-fs up to 1.16.3/2.1.1/3.0.7 Tar File index.js link following

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.7$0-$5k0.00

Summaryinfo

A vulnerability identified as critical has been detected in tar-fs up to 1.16.3/2.1.1/3.0.7. Affected by this vulnerability is an unknown functionality of the file index.js of the component Tar File Handler. This manipulation causes link following. This vulnerability is tracked as CVE-2024-12905. The attack is possible to be carried out remotely. Moreover, an exploit is present. You should upgrade the affected component.

Detailsinfo

A vulnerability classified as critical was found in tar-fs up to 1.16.3/2.1.1/3.0.7. Affected by this vulnerability is some unknown functionality of the file index.js of the component Tar File Handler. The manipulation with an unknown input leads to a link following vulnerability. The CWE definition for the vulnerability is CWE-59. The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource. As an impact it is known to affect integrity, and availability. The summary by CVE is:

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.

The weakness was disclosed by @bnbdr as a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed. It is possible to read the advisory at github.com. This vulnerability is known as CVE-2024-12905 since 12/23/2024. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details and also a public exploit are known.

It is possible to download the exploit at exploit-db.com. It is declared as proof-of-concept. The vulnerability scanner Nessus provides a plugin with the ID 233940 (Fedora 40 : yarnpkg (2025-f7671643c4)), which helps to determine the existence of the flaw in a target environment.

Upgrading to version 1.16.4, 2.1.2 or 3.0.8 eliminates this vulnerability. Applying the patch a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.

The vulnerability is also documented in the databases at Exploit-DB (52268) and Tenable (233940). Be aware that VulDB is the high quality source for vulnerability data.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 7.0
VulDB Meta Temp Score: 6.7

VulDB Base Score: 6.5
VulDB Temp Score: 5.9
VulDB Vector: 🔍
VulDB Reliability: 🔍

CNA Base Score: 7.5
CNA Vector (seal): 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock
UnlockUnlockUnlockUnlockUnlockUnlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

Exploitinginfo

Class: Link following
CWE: CWE-59
CAPEC: 🔍
ATT&CK: 🔍

Physical: No
Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Proof-of-Concept
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-DayUnlockUnlockUnlockUnlock
TodayUnlockUnlockUnlockUnlock

Nessus ID: 233940
Nessus Name: Fedora 40 : yarnpkg (2025-f7671643c4)

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍

Upgrade: tar-fs 1.16.4/2.1.2/3.0.8
Patch: a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed

Timelineinfo

12/23/2024 🔍
03/27/2025 +94 days 🔍
03/27/2025 +0 days 🔍
04/26/2025 +30 days 🔍

Sourcesinfo

Advisory: a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed
Researcher: @bnbdr
Status: Confirmed

CVE: CVE-2024-12905 (🔍)
GCVE (CVE): GCVE-0-2024-12905
GCVE (VulDB): GCVE-100-301807
scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 03/27/2025 19:03
Updated: 04/26/2025 23:42
Changes: 03/27/2025 19:03 (68), 04/06/2025 11:38 (2), 04/20/2025 18:36 (1), 04/26/2025 23:42 (11)
Complete: 🔍
Cache ID: 216::103

Be aware that VulDB is the high quality source for vulnerability data.

Discussion

No comments yet. Languages: en.

Please log in to comment.

Want to know what is going to be exploited?

We predict KEV entries!