simple-gitにコマンド実行の脆弱性、4.1.0で修正
Summary
Node.jsのgit操作ライブラリsimple-gitに、外部の値が引数に混ざるとホスト上でコマンドを実行される脆弱性が公表されました。4.1.0以降へ更新し、listRemote()やraw()に外部の値を渡していないかも確認してください。
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のgit操作ライブラリsimple-gitに、外部の値が引数に混ざるとホスト上でコマンドを実行される脆弱性が公表されました。4.1.0以降へ更新し、listRemote()やraw()に外部の値を渡していないかも確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| steveukxsimple-git |
< 4.1.0→ 4.1.0 |
4.1.0 |
| steveukx@simple-git/argv-parser |
< 3.0.0→ 3.0.0 |
3.0.0 |
Original description The description as published by the source.
simple-git before 4.1.0 contains an argument injection vulnerability that allows attackers to bypass the allowUnsafePack guard by supplying the --exec option to non-push git operations. Attackers who influence arguments passed to listRemote() or raw() can inject --exec for ls-remote, archive, fetch-pack or send-pack to execute commands on the host.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- package github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com
- web github.com
- web vulncheck.com
- web nvd.nist.gov
- web github.com