{"id":"CVE-2026-24842","published":"2026-01-28T00:20:13Z","modified":"2026-09-07T12:05:07Z","title":"node-tar Vulnerable to Arbitrary File Creation/Overwrite via Hardlink Path Traversal","vendor":"isaacs","product":"node-tar","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00718,"percentile":0.49631,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"},{"id":"CWE-59","name":"Improper Link Resolution Before File Access"}],"references":[{"url":"https://github.com/isaacs/node-tar/security/advisories/GHSA-34x7-hfp2-rc4v","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","tags":["x_refsource_MISC"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-24842","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2433645","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24842.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:33371","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18480","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:18868","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:2900","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:6192","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5447","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":15.7,"factors":[{"name":"EPSS percentile","points":9.93},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"isaacs","affectedVersions":[{"vendor":"isaacs","product":"node-tar","versions":["< 7.5.7"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-01-28T14:55:08.552380Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"tar","vulnerableRanges":["<7.5.7"],"patched":["7.5.7"],"from":["GHSA-34x7-hfp2-rc4v"],"provenance":"source"}],"summary":{"text":"The flaw is in node-tar, the Tar library for Node.js, in versions before 7.5.7: its security check for hardlink entries resolves paths differently from the code that actually creates the hardlinks, so path traversal protections can be bypassed. An attacker who can supply a crafted TAR archive that a victim extracts (requiring user interaction) can create hardlinks to arbitrary files outside the extraction directory, with no authentication needed and an attack complexity that is low.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:12Z"},"euvd":{"id":"EUVD-2026-4909","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-isaacs-node-tar-cve-2026-23745","parents":[{"from":"CVE-2026-23745","to":"CVE-2026-24842","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/340eb285b6d986e91969a1170d7fe9b0face405e","https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46"],"basis":"shared function","functions":["Unpack"]}]}],"children":[{"from":"CVE-2026-24842","to":"CVE-2026-26960","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.7","toFixed":"7.5.8","daysApart":23},{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","https://github.com/isaacs/node-tar/commit/2cb1120bcefe28d7ecc719b41441ade59c52e384","https://github.com/isaacs/node-tar/commit/d18e4e1f846f4ddddc153b0f536a19c050e7499f"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2026-24842","to":"CVE-2026-29786","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","https://github.com/isaacs/node-tar/commit/7bc755dd85e623c0279e08eb3784909e6d7e4b9f"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2026-24842","to":"CVE-2026-31802","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","https://github.com/isaacs/node-tar/commit/f48b5fa3b7985ddab96dc0f2125a4ffc9911b6ad"],"basis":"shared function","functions":["Unpack"]}]},{"from":"CVE-2026-24842","to":"CVE-2026-59871","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/unpack.ts"],"commits":["https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46","https://github.com/isaacs/node-tar/commit/e02a4e9e013c4be95302e2eb2047a942b883c27b"],"basis":"shared function","functions":["Unpack"]}]}],"packageHistory":[{"cve":"CVE-2025-64118","published":"2025-10-30","fixed":"7.5.2","kev":false},{"cve":"CVE-2026-23745","published":"2026-01-16","fixed":"7.5.3","kev":false},{"cve":"CVE-2026-23950","published":"2026-01-20","fixed":"7.5.4","kev":false,"link":{"from":"CVE-2026-23950","to":"CVE-2026-24842","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:tar","fromFixed":"7.5.4","toFixed":"7.5.7","daysApart":8}]}},{"cve":"CVE-2026-24842","published":"2026-01-28","fixed":"7.5.7","kev":false},{"cve":"CVE-2026-26960","published":"2026-02-20","fixed":"7.5.8","kev":false},{"cve":"CVE-2026-29786","published":"2026-03-07","fixed":"7.5.10","kev":false},{"cve":"CVE-2026-31802","published":"2026-03-09","fixed":"7.5.11","kev":false}],"package":"npm:tar"}}