CVEfocus › CVE database › CVE-2026-24842

CVE-2026-24842node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal

CVSS 8.2 HighEPSS 0.7% (higher than 50% of CVEs)Published 2026-01-28Updated 2026-09-07Assigner: GitHub_M

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.

CWE-22CWE-59

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, npm: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

35Fixed
5Fix pending
3Under investigation
1Will not fix
58Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10node-tarFix pendingUBUNTU-CVE-2026-24842
Ubuntu 26.04node-tarUnder investigationUBUNTU-CVE-2026-24842
Ubuntu 25.10node-tarWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-24842
Ubuntu 24.04node-tarUnder investigationUBUNTU-CVE-2026-24842
Ubuntu 22.04node-tarUnder investigationUBUNTU-CVE-2026-24842
Ubuntu 20.04node-tarFix pendingUBUNTU-CVE-2026-24842
Ubuntu 18.04node-tarFix pendingUBUNTU-CVE-2026-24842
Ubuntu 16.04node-tarFix pendingUBUNTU-CVE-2026-24842
Ubuntu 14.04node-tarFix pendingUBUNTU-CVE-2026-24842
Debian 14node-tarFixed6.2.1+ds1+~cs6.1.13-10DEBIAN-CVE-2026-24842
Red Hat Enterprise Linux 10linux-sgxFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10nodejsNot affected
Red Hat Enterprise Linux 10nodejs-develNot affected
Red Hat Enterprise Linux 10nodejs-docsNot affected
Red Hat Enterprise Linux 10nodejs-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs-libsNot affected
Red Hat Enterprise Linux 10nodejs-npmNot affected
Red Hat Enterprise Linux 10nodejs22Not affected
Red Hat Enterprise Linux 10nodejs24Not affected
Red Hat Enterprise Linux 10nodejs24-develNot affected
Red Hat Enterprise Linux 10nodejs24-docsNot affected
Red Hat Enterprise Linux 10nodejs24-full-i18nNot affected
Red Hat Enterprise Linux 10nodejs24-libsNot affected
Red Hat Enterprise Linux 10nodejs24-npmNot affected
Red Hat Enterprise Linux 10sgx-commonFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10sgx-libsFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10sgx-mpaFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10sgx-pccsFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10sgx-pccs-adminFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10sgx-pckid-toolFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 10tarNot affected
Red Hat Enterprise Linux 10tdx-qgsFixed0:2.26-7.el10RHSA-2026:18480
Red Hat Enterprise Linux 9gjsNot affected
Red Hat Enterprise Linux 9gjs-develNot affected
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 9linux-sgxFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9nodejsNot affected
Red Hat Enterprise Linux 9nodejs-docsNot affected
Red Hat Enterprise Linux 9nodejs-full-i18nNot affected
Red Hat Enterprise Linux 9nodejs-libsNot affected
Red Hat Enterprise Linux 9npmNot affected
Red Hat Enterprise Linux 9polkitNot affected
Red Hat Enterprise Linux 9polkit-develNot affected
Red Hat Enterprise Linux 9polkit-docsNot affected
Red Hat Enterprise Linux 9polkit-libsNot affected
Red Hat Enterprise Linux 9sgx-commonFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9sgx-libsFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9sgx-mpaFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9sgx-pccsFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9sgx-pccs-adminFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9sgx-pckid-toolFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 9tarNot affected
Red Hat Enterprise Linux 9tdx-qgsFixed0:2.26-7.el9RHSA-2026:18868
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Red Hat Enterprise Linux 8mozjs60Not affected
Red Hat Enterprise Linux 8mozjs60-develNot affected
Red Hat Enterprise Linux 8nodejsNot affected
Red Hat Enterprise Linux 8nodejs-develNot affected
Red Hat Enterprise Linux 8nodejs-docsNot affected
Red Hat Enterprise Linux 8nodejs-full-i18nNot affected
Red Hat Enterprise Linux 8nodejs-libsNot affected
Red Hat Enterprise Linux 8nodejs-nodemonNot affected
Red Hat Enterprise Linux 8nodejs-packagingNot affected
Red Hat Enterprise Linux 8nodejs-packaging-bundlerNot affected
Red Hat Enterprise Linux 8npmNot affected
Red Hat Enterprise Linux 8tarNot affected
Red Hat Enterprise Linux 8v8-12.4-develNot affected
Red Hat Enterprise Linux 8v8-13.6-develNot affected
Red Hat Enterprise Linux 7tarNot affected
Red Hat Enterprise Linux 6tarNot affected
AlmaLinux 10sgx-commonFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10sgx-libsFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10sgx-mpaFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10sgx-pccsFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10sgx-pccs-adminFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10sgx-pckid-toolFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 10tdx-qgsFixed2.26-7.el10ALSA-2026:18480
AlmaLinux 9sgx-commonFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9sgx-libsFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9sgx-mpaFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9sgx-pccsFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9sgx-pccs-adminFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9sgx-pckid-toolFixed2.26-7.el9ALSA-2026:18868
AlmaLinux 9tdx-qgsFixed2.26-7.el9ALSA-2026:18868
Rocky Linux 10linux-sgxFixed0:2.26-7.el10RLSA-2026:18480
Rocky Linux 9linux-sgxFixed0:2.26-7.el9RLSA-2026:18868
Alpine Linux 3.23pnpmFixed10.33.4-r0ALPINE-CVE-2026-24842
npm librarytarFixed7.5.7GHSA-34x7-hfp2-rc4v

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.