CVE-2026-24842
BaseFortify
Publication date: 2026-01-28
Last updated on: 2026-02-02
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| isaacs | tar | to 7.5.7 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| 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. |
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
The vulnerability in node-tar versions prior to 7.5.7 is due to a mismatch between the security check for hardlink entries and the actual hardlink creation logic. Specifically, the path resolution semantics used in the security check differ from those used when creating hardlinks. This flaw allows an attacker to craft a malicious TAR archive that bypasses path traversal protections and creates hardlinks to arbitrary files outside the intended extraction directory.
How can this vulnerability impact me? :
This vulnerability can allow an attacker to create hardlinks to arbitrary files outside the extraction directory when extracting a malicious TAR archive. This can lead to unauthorized access or modification of files, potentially compromising system integrity and confidentiality.
What immediate steps should I take to mitigate this vulnerability?
Upgrade node-tar to version 7.5.7 or later, as this version contains the fix for the vulnerability. Avoid extracting TAR archives from untrusted sources until the upgrade is applied.