CVE-2026-140118 PUBLISHED

node-tar: Uncapped linkpath drives quadratic getDirs in async path reservation causing uncatchable OOM DoS

Assigner: GitHub_M
Reserved: 30.11.2026 Published: 01.12.2026 Updated: 01.12.2026

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.

Metrics

CVSS Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
CVSS Score: 7.1

Product Status

Vendor isaacs
Product node-tar
Versions
  • Version < 8.0.0 is affected

References

Problem Types

  • CWE-400: Uncontrolled Resource Consumption CWE
  • CWE-407: Inefficient Algorithmic Complexity CWE