CVE-2026-24842: node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
node-tar,a Tar for Node.js, contains a vulnerability in versions prior to 7.5.7 where the security check for hardlink entries uses different path resolution semantics than the actual hardlink creation logic. This mismatch allows an attacker to craft a malicious TAR archive that bypasses path traversal protections and creates hardlinks to arbitrary files outside the extraction directory. Version 7.5.7 contains a fix for the issue.
Security readout for executives and security teams
Plain-English summary
CVE-2026-24842 affects node-tar before 7.5.7. A malicious archive can bypass extraction safety checks and create or overwrite hardlinks outside the intended folder. Business risk is highest where systems accept or unpack external TAR files, such as uploads, build pipelines, package processing, or support tooling.
Executive priority
Treat as high priority for archive-processing services and build infrastructure. It is not confirmed as actively exploited, but the impact includes sensitive file exposure and limited integrity impact if malicious archives are processed.
Technical view
The issue is a path traversal and hardlink handling flaw. node-tar validates hardlink entries using path semantics that differ from the creation path, allowing crafted archives to escape the extraction directory. The CVSS 3.1 score is 8.2. The fixed version is 7.5.7.
Likely exposure
Exposure is likely in Node.js applications, CI systems, developer tools, or products that use node-tar below 7.5.7 and extract TAR archives from users, partners, repositories, or automated feeds.
Exploitation context
The sources indicate user interaction is required: a target must process a malicious TAR archive. CISA KEV is false in the bundle, and no provided source confirms active exploitation.
Researcher notes
Focus validation on hardlink entries, extraction root handling, and dependency reachability. The key nuance is mismatched path resolution between the security check and hardlink creation logic. Avoid assuming impact where TAR extraction is not reachable.
Mitigation direction
Upgrade node-tar to 7.5.7 or later where directly managed.
Apply relevant Red Hat errata for affected Red Hat-packaged products.
Prioritize systems that extract externally supplied TAR archives.
Isolate or suspend untrusted archive extraction until fixed.
Check vendor guidance for transitive dependency remediation.
Validation and detection
Inventory lockfiles and SBOMs for node-tar versions below 7.5.7.
Identify applications and jobs that extract TAR files from untrusted sources.
Confirm dependency resolution now uses node-tar 7.5.7 or later.
Review Red Hat CVE, VEX, and errata applicability for deployed products.
Verify no unsupported workaround replaced the vendor fix.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · medium confidence lookup
CWE-22: File access and web shell behavior lookup
File traversal and upload weaknesses can lead teams to review file, web shell, execution, and collection telemetry. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
The CVE wording references file access or upload behavior, so file telemetry and web shell review may help. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
CWE-22 · source CWE mapping
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
Improper Link Resolution Before File Access ('Link Following')
Improper Link Resolution Before File Access ('Link Following') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.