Skip to content
High 7.1

node-tarの非同期展開で細工されたアーカイブにより処理が止まるサービス拒否の脆弱性

CVE-2026-140251 First seen on SecPulse

Summary

細工されたtarアーカイブを非同期で展開すると、処理が無期限に止まるサービス拒否の脆弱性です。影響を受けるのは7.5.22から8.0.0より前のnode-tarで、Windowsと同期展開には影響しません。修正版の8.0.0が公開されているので、該当するバージョンを使っている場合は更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

細工されたtarアーカイブを非同期で展開すると、処理が無期限に止まるサービス拒否の脆弱性です。影響を受けるのは7.5.22から8.0.0より前のnode-tarで、Windowsと同期展開には影響しません。修正版の8.0.0が公開されているので、該当するバージョンを使っている場合は更新してください。

Affected packages

PackageAffected → Fixed
isaacsnode-tar —
npmtar
< 8.0.0→ 8.0.0
Original description The description as published by the source.

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 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:

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 directory `…

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details