Zukeに Windows でコマンドを追加実行される脆弱性
Summary
Zukeの1.51.0より前の版では、Windows上のビルドで.cmdと.batのシムがcmd.exe経由で起動されるため、特定の文字を含む入力によって、ビルドの権限でほかのコマンドを実行される脆弱性があります。修正版の1.51.0で対応しているので、Windowsでzukeを使っている場合は1.51.0以降へ更新してください。POSIX系のプラットフォームは影響を受けません。
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.
Zukeの1.51.0より前の版では、Windows上のビルドで.cmdと.batのシムがcmd.exe経由で起動されるため、特定の文字を含む入力によって、ビルドの権限でほかのコマンドを実行される脆弱性があります。修正版の1.51.0で対応しているので、Windowsでzukeを使っている場合は1.51.0以降へ更新してください。POSIX系のプラットフォームは影響を受けません。
Original description The description as published by the source.
Zuke is a code-first, strongly typed build automation system for Deno. Prior to 1.51.0, @zuke/core launches resolved Windows .cmd and .bat shims by prepending cmd /c, causing cmd.exe to reparse a command line assembled with C-runtime quoting rules. A build running on Windows that resolves a tool from node_modules/.bin and passes attacker-influenced text containing an unquoted &, |, or ^ metacharacter can execute an additional attacker-chosen command in the build's context with access to its credentials. POSIX platforms are not affected. This issue is fixed in version 1.51.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com
- patch github.com
- web github.com