Skip to content
High 7.1

node-tarに小さなアーカイブで大量のメモリやCPUを消費される脆弱性

CVE-2026-140240 First seen on SecPulse

Summary

node-tarの8.0.2より前のバージョンには、細工された小さなtarアーカイブを処理すると、メモリやCPUを使い果たされる脆弱性があります。修正版の8.0.2で対応しています。影響を受ける場合は、8.0.2以降へ更新してください。CVSSはv4で7.1です。

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.

node-tarの8.0.2より前のバージョンには、細工された小さなtarアーカイブを処理すると、メモリやCPUを使い果たされる脆弱性があります。修正版の8.0.2で対応しています。影響を受ける場合は、8.0.2以降へ更新してください。CVSSはv4で7.1です。

Affected packages

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

Summary

The GHSA-f5x3-32g6-xq36 fix bounded the depth (component count) of entry.path with maxDepth. The path-reservation code still computes every ancestor prefix of each reserved path, and its cost grows with the number of components multiplied by the path length. That bound doesn't apply to linkpath, nor to long components within the depth limit. Reservation state and some caches are also never released for the life of an extraction.

Details

# Issue Location Default options
VULN-002 linkpath has no depth or length bound and is reserved for every entry type. getDirs cost is quadratic in its length, so an archive of a few hundred bytes compressed aborts the Node process src/path-reservations.ts:25-38, via src/unpack.ts:729-734 Yes (async x/Unpack)
VULN-023 Within maxDepth, very long components make the same getDirs computation exhaust memory (the depth fix bounds count, not length) src/path-reservations.ts:25-38, via src/unpack.ts:734 Yes (async)
VULN-009 PathReservations.#reservations entries are never deleted, so ancestor strings for every entry are kept until the Unpack ends src/path-reservations.ts:64 Yes (async)
VULN-012 The normalizeUnicode cache is capped by entry count (10k), not bytes, so long names make it large src/normalize-unicode.ts:5-35 Yes (async)
VULN-024 filesFilter memoises every path prefix; memory grows with depth × length. The GHSA-r2…

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