CVE-2026-24842
HIGH 8.2CVSS 3.1node-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.
- Published
- 28 Jan 2026
- Last modified
- 10 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-22CWE-59
- Also known as
- GHSA-34x7-hfp2-rc4v
- Sources
- NVDJSONOSV GHSA-34x7-hfp2-rc4vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary) | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | isaacs | tarcpe:2.3:a:isaacs:tar:*:*:*:*:*:node.js:*:* |
< 7.5.7 | 7.5.7 |
| OSV | npm | tar | < 7.5.7 | 7.5.7 |
References
- https://github.com/isaacs/node-tar/commit/f4a7aa9bc3d717c987fdf1480ff7a64e87ffdb46 · Patch, WEB
- https://github.com/isaacs/node-tar/security/advisories/GHSA-34x7-hfp2-rc4v · Exploit, Vendor Advisory, WEB
- https://access.redhat.com/errata/RHSA-2026:18480
- https://access.redhat.com/errata/RHSA-2026:18868
- https://access.redhat.com/errata/RHSA-2026:2900
- https://access.redhat.com/errata/RHSA-2026:33371
- https://access.redhat.com/errata/RHSA-2026:5447
- https://access.redhat.com/errata/RHSA-2026:6192
- https://access.redhat.com/security/cve/CVE-2026-24842
- https://bugzilla.redhat.com/show_bug.cgi?id=2433645
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-24842.json
- https://nvd.nist.gov/vuln/detail/CVE-2026-24842 · ADVISORY
- https://github.com/isaacs/node-tar · PACKAGE
History
- 25 Nov 2026 21:01 UTC · NVD: first stored (published 28 Jan 2026)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 28 Jan 2026)