CVE-2026-140240 PUBLISHED

node-tar: A small archive exhausts memory or CPU through path-reservation bookkeeping

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.2, a small crafted archive can exhaust memory or CPU through several path bookkeeping paths. Asynchronous PathReservations performs excessive work for unbounded linkpath depth and long path components, retains completed reservation state, and stores long names in the normalizeUnicode cache whose entry-count limit does not bound bytes. Separately, filesFilter memoizes path prefixes when the caller supplies a file list. This issue is fixed in version 8.0.2.

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.2 is affected

References

Problem Types

  • CWE-401: Missing Release of Memory after Effective Lifetime CWE
  • CWE-407: Inefficient Algorithmic Complexity CWE
  • CWE-770: Allocation of Resources Without Limits or Throttling CWE