Vulnerability · Published Jan 28, 2026 · Assigned by GitHub_M
CVE-2026-24842node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal
High 8.2
In plain English
A high-severity path traversal in node-tar from isaacs. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | sgx-common | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-common | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | sgx-libs | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-libs | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | sgx-mpa | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-mpa | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | sgx-pccs | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-pccs | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | sgx-pccs-admin | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-pccs-admin | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | sgx-pckid-tool | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | sgx-pckid-tool | 2.26-7.el9 | ALSA-2026:18868 |
| AlmaLinux:10 | tdx-qgs | 2.26-7.el10 | ALSA-2026:18480 |
| AlmaLinux:9 | tdx-qgs | 2.26-7.el9 | ALSA-2026:18868 |
| Alpine:v3.23 | pnpm | 10.33.4-r0 | ALPINE-CVE-2026-24842 |
| Debian:14 | node-tar | 6.2.1+ds1+~cs6.1.13-10 | DEBIAN-CVE-2026-24842 |
| Rocky Linux:10 | linux-sgx | 0:2.26-7.el10 | RLSA-2026:18480 |
| Rocky Linux:9 | linux-sgx | 0:2.26-7.el9 | RLSA-2026:18868 |
| Ubuntu:22.04:LTS | node-tar | no fix listed | UBUNTU-CVE-2026-24842 |
| Ubuntu:24.04:LTS | node-tar | no fix listed | UBUNTU-CVE-2026-24842 |
| Ubuntu:25.10 | node-tar | no fix listed | UBUNTU-CVE-2026-24842 |
| Ubuntu:26.04:LTS | node-tar | no fix listed | UBUNTU-CVE-2026-24842 |
| Ubuntu:26.10 | node-tar | no fix listed | UBUNTU-CVE-2026-24842 |
| npm | tar | 7.5.7 | GHSA-34x7-hfp2-rc4v |
Affected products (as reported)
Weakness: CWE-22, CWE-59 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
References
- https://github.com/isaacs/node-tar/security/advisories/GHSA-34x7-hfp2-rc4v x_refsource_CONFIRM
- https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46 x_refsource_MISC
- https://access.redhat.com/security/cve/CVE-2026-24842 vdb-entry, x_refsource_REDHAT
- RHBZ#2433645 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24842.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:33371 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18480 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:18868 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:2900 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:6192 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:5447 vendor-advisory, x_refsource_REDHAT