CVE-2026-24842CWE-22CWE-59path-traversal

CVE-2026-24842

High · published January 28, 2026

CVSS v3.1
8.2
EPSS
1%
Percentile
48.9
In the wild
Unconfirmed
What it is

⚡ A sneaky mismatch in path handling could let attackers create hardlinks to any file they choose! Think of it like a delivery driver who misreads an address and drops a package in a completely wrong location instead of the intended recipient — this flaw allows attackers to redirect files outside their intended boundaries! An attacker could exploit this vulnerability to create hardlinks to sensitive files on the server, potentially exposing confidential information or compromising other system functionalities. Imagine the chaos if someone redirected all your important documents to a stranger’s mailbox!

Put simply

Think of it like a delivery driver who misreads an address and drops a package in a completely wrong location instead of the intended recipient — this flaw allows attackers to redirect files outside their intended boundaries! In node-tar versions prior to 7.5.7, the check for hardlink entries uses a different resolution method than the actual creation logic, leading to path traversal protection being bypassed. This allows crafted TAR files to create hardlinks to arbitrary files outside the extraction directory.

What to do

An attacker could exploit this vulnerability to create hardlinks to sensitive files on the server, potentially exposing confidential information or compromising other system functionalities. Imagine the chaos if someone redirected all your important documents to a stranger’s mailbox! Upgrade node-tar to version 7.5.7 or later immediately to close off this vulnerability. After upgrading, review your TAR file handling procedures to ensure that hardlink creation is properly validated. Regular audits of archived files wouldn't hurt either! You've got this! With these steps, you're on your way to securing your systems! 🛡️

The record
Technical detail
CVSS v3.1
8.2 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
CVSS v4.0
Not supplied
EPSS
0.00617 · 48.9th percentile
Weaknesses
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'); CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2026-01-28T06:16Z
Affected products (1)
ProductVersionsFixed in
isaacs/tar< 7.5.77.5.7
References (11)
EPSS history
Timeline
  • 28 JAN 00:20Z
    node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
    cvelistv5