CVE-2026-140119: node-tar async extract: deep symlink linkpath reaches quadratic getDirs, causing uncatchable heap-exhaustion DoS
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, on non-Windows hosts, asynchronous Unpack extraction of an attacker-controlled archive with a deeply nested linkpath reaches the quadratic PathReservations.getDirs() path. This can exhaust the Node.js heap and terminate the process. Synchronous extraction and the Windows reservation path are not affected by this vector. This issue is fixed in version 8.0.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.0.0
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service issue?
Deployments using node-tar versions before 8.0.0 on non-Windows hosts are exposed when they perform asynchronous Unpack extraction of attacker-controlled tar archives. Synchronous extraction and the Windows reservation path are not affected by this vector.
What must an attacker provide to trigger the issue?
An attacker needs to supply a tar archive that is extracted through asynchronous Unpack and contains a deeply nested linkpath. Processing that archive can drive the quadratic PathReservations.getDirs() path and exhaust the Node.js heap.
What is the operational impact if exploitation succeeds?
The Node.js heap can be exhausted, terminating the affected process. This is a denial-of-service condition.
What remediation is available?
Upgrade node-tar to version 8.0.0, which fixes the issue. If upgrading is not immediately possible, avoid asynchronously extracting untrusted archives on non-Windows hosts; synchronous extraction is not affected by this vector.