SandboxJSに細工した入力で処理が停止する脆弱性
Summary
SandboxJSのパーサーに、深くネストした式を処理する際の無制限な再帰が含まれる脆弱性です。細工した入力を与えると、Node.jsのプロセスが「Maximum call stack size exceeded」で異常終了します。0.8.36より前のバージョンが対象で、0.8.36で修正されています。信頼できない入力を解析する用途では、早めに0.8.36以降へ更新することをおすすめします。
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.
SandboxJSのパーサーに、深くネストした式を処理する際の無制限な再帰が含まれる脆弱性です。細工した入力を与えると、Node.jsのプロセスが「Maximum call stack size exceeded」で異常終了します。0.8.36より前のバージョンが対象で、0.8.36で修正されています。信頼できない入力を解析する用途では、早めに0.8.36以降へ更新することをおすすめします。
Original description The description as published by the source.
SandboxJS is a JavaScript sandboxing library. Prior to 0.8.36, the @nyariv/sandboxjs parser contains unbounded recursion in the restOfExp function and the lispify/lispifyExpr call chain. An attacker can crash any Node.js process that parses untrusted input by supplying deeply nested expressions (e.g., ~2000 nested parentheses), causing a RangeError: Maximum call stack size exceeded that terminates the process. This vulnerability is fixed in 0.8.36.
Source: NIST National Vulnerability Database NVD
References
- exploit security-advisories@github.com