tar-fs up to 1.16.3/2.1.1/3.0.7 Tar File index.js link following
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 6.7 | $0-$5k | 0.00 |
Summary
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.
Details
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.
Product
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔍VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 7.0VulDB 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): 🔍
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
Exploiting
Class: Link followingCWE: 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-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 233940
Nessus Name: Fedora 40 : yarnpkg (2025-f7671643c4)
Exploit-DB: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Upgrade: tar-fs 1.16.4/2.1.2/3.0.8
Patch: a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2ed
Timeline
12/23/2024 🔍03/27/2025 🔍
03/27/2025 🔍
04/26/2025 🔍
Sources
Advisory: a1dd7e7c7f4b4a8bd2ab60f513baca573b44e2edResearcher: @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
Entry
Created: 03/27/2025 19:03Updated: 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.
No comments yet. Languages: en.
Please log in to comment.