node-tarの脆弱性、細工したアーカイブでメモリ枯渇によるサービス停止のおそれ
Summary
node-tarには、攻撃者が用意したアーカイブを非同期で展開すると、メモリを使い切ってNode.jsのプロセスが停止する脆弱性があります。8.0.0より前のバージョンが対象で、POSIX系のホストで影響します。修正版の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.
node-tarには、攻撃者が用意したアーカイブを非同期で展開すると、メモリを使い切ってNode.jsのプロセスが停止する脆弱性があります。8.0.0より前のバージョンが対象で、POSIX系のホストで影響します。修正版の8.0.0に更新してください。
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- web security-advisories@github.com
- web security-advisories@github.com
- web security-advisories@github.com