CVE-2026-140251 — Tar — CWE-667 · CWE-833
### Summary An unauthenticated remote-input denial of service allows a crafted tar archive of about 1.5 KB to permanently and silently hang node-tar's default asynchronous extraction. When a `Link` or `SymbolicLink` entry has a `linkpath` that is an ancestor (or descendant) directory of the entry's own `path`, the internal path-reservation queue enters an unsatisfiable state. The promise returned by `tar.x()` / `tar.extract()` never resolves or rejects, the stream never emits `end` / `finish` / `close`, and no warning is raised. Every entry after the poison entry is silently skipped. ### Details Async `Unpack` serialises filesystem work through `PathReservations` (`src/path-reservations.ts`). `reserve([entry.path, entry.linkpath], fn)` registers each reserved path as a plain function at that path's queue key, and every ancestor directory of each path as a `Set<Handler>` at that directory's queue key. `check(fn)` (src/path-reservations.ts:114-120) only schedules `fn` when it is the head function of every path queue AND the head of every directory queue is a `Set` that contains `fn`: ```ts check(fn) { const { paths, dirs } = this.#getQueues(fn) return ( paths.every(q => q && q[0] === fn) && dirs.every(q => q && q[0] instanceof Set && q[0].has(fn)) ) } ``` When one of the two reserved strings is an ancestor directory of the other, the same queue key is written twice: once as a function head (the path reservation, src/path-reservations.ts:65-72) and once as a di
### Summary An unauthenticated remote-input denial of service allows a crafted tar archive of about 1.5 KB to permanently and silently hang node-tar's default asynchronous extraction. When a `Link` or `SymbolicLink` entry has a `linkpath` that is an ancestor (or descendant) directory of the entry's own `path`, the internal path-reservation queue enters an unsatisfiable state. The promise returned by `tar.x()` / `tar.extract()` never resolves or rejects, the stream never emits `end` / `finish` / `close`, and no warning is raised. Every entry after the poison entry is silently skipped. ### Details Async `Unpack` serialises filesystem work through `PathReservations` (`src/path-reservations.ts`). `reserve([entry.path, entry.linkpath], fn)` registers each reserved path as a plain function at that path's queue key, and every ancestor directory of each path as a `Set<Handler>` at that directory's queue key. `check(fn)` (src/path-reservations.ts:114-120) only schedules `fn` when it is the head function of every path queue AND the head of every directory queue is a `Set` that contains `fn`: ```ts check(fn) { const { paths, dirs } = this.#getQueues(fn) return ( paths.every(q => q && q[0] === fn) && dirs.every(q => q && q[0] instanceof Set && q[0].has(fn)) ) } ``` When one of the two reserved strings is an ancestor directory of the other, the same queue key is written twice: once as a function head (the path reservation, src/path-reservations.ts:65-72) and once as a di
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
CVE-2026-140251
CVSS 7.1/10 · HIGH · 01.12.2026
CWE: CWE-667, CWE-833
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🎯 WHAT IS THIS VULNERABILITY?
Summary: node-tar is a tar archive manipulation library for Node.js. From 7.5.22 until 8.0.0, node-tar contains a path-reservation deadlock affecting asynchronous archive extraction on POSIX systems. An attacker who can supply a crafted archive containing an entry whose link target is an ancestor or descendant of its own path can cause extraction to stall indefinitely, resulting in denial of service.
⚡ ATTACK VECTOR
Network / Remote (AV:N) · no authentication required (PR:N) · user interaction required (UI:R) · low attack complexity (AC:L).
🌍 REAL WORLD IMPACT
Partial confidentiality disclosure (C:L); service can be completely taken down.
🛡️ REMEDIATION
→ Apply the vendor-released patch immediately.
→ Pre-patch: put service behind VPN or apply IP allowlist.
→ Add WAF rule, create IDS alert for anomalous traffic.
⚠️ URGENCY
⚠️ This week (7 days) — High risk, anonymous remote.
────────────────────────────────────────
[Automated Technical Vulnerability & CVSS Vector Analysis]