cross-spawnにコマンド注入の脆弱性、修正版あり
Summary
Node.js向けのcross-spawnに、Windowsでコマンド注入が起きる脆弱性があります。外部からの入力を引数に渡すアプリが対象で、npm ls cross-spawnで版を調べ、6.0.7か7.1.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.js向けのcross-spawnに、Windowsでコマンド注入が起きる脆弱性があります。外部からの入力を引数に渡すアプリが対象で、npm ls cross-spawnで版を調べ、6.0.7か7.1.0の修正版へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| moxystudionode-cross-spawn | — | Not listed |
| npmcross-spawn |
< 6.0.7→ 6.0.7 |
6.0.7 |
Original description The description as published by the source.
cross-spawn is a cross-platform solution for Node.js spawn and spawnSync. Prior to 6.0.7 and 7.1.0, Windows applications that pass untrusted arguments to commands routed through cmd.exe can be vulnerable because cross-spawn did not account for the second cmd.exe parse performed when a batch file outside node_modules/.bin forwards its arguments. A crafted argument could break out of its quotes and execute arbitrary commands through npm.cmd, globally installed package shims, or user batch files. Trailing dots or spaces could bypass batch-file detection. A percent-delimited variable in an argument could be expanded when an environment variable with the same name followed by a caret existed, and an exclamation-delimited variable could be expanded when delayed expansion was enabled in the registry. Other platforms and the intentionally unescaped options.shell mode are not affected. This issue is fixed in versions 6.0.7 and 7.1.0.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- report github.com
- web github.com
- web github.com
- web github.com