Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
8.3

CVE-2026-140118: node-tar may exhaust memory when extracting crafted archives

CVE-2026-140118 · published 4 days ago
Summary

The node-tar library used to unpack archive files can run out of memory if it processes a specially crafted archive with many nested links. This can cause the application to stop working. Upgrade node-tar to version 8.0.0 or later to prevent the issue.

What to do

The CVE record does not list a fixed version. Check the vendor's site or the advisory links below - a fix may already be released.

Affected software
Ecosystem VendorProductAffected versions
Debian:12 debian node-tar All versions
Ubuntu:Pro:14.04:LTS canonical node-tar All versions
– isaacs node-tar < 8.0.0
Original advisory text
node-tar: Uncapped linkpath drives quadratic getDirs in async path reservation causing uncatchable OOM DoS
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on POSIX hosts, asynchronous extraction of an attacker-controlled archive with a deeply nested linkpath causes PathReservations.getDirs() to materialize every ancestor prefix. The quadratic allocation can exhaust the Node.js heap and terminate the process. The reserve() path is not used for this purpose on Windows. This issue is fixed in version 8.0.0.
Fix within
Internet-facing 14 days
Internal 60 days
  • Not known to be exploited
  • Can be exploited automatically
  • Gives an attacker partial control
Severity
8.3 High
Exploitation
<1% chance of attack within 30 days
Type
CWE-400Uncontrolled Resource Consumption
CWE-407Inefficient Algorithmic Complexity
Timeline
Published1 Dec 2026
Updated6 Dec 2026
First seen1 Dec 2026
Track software like this
Free during beta