sf-mcpにOSコマンド注入の脆弱性、サーバー上でコマンドを実行されるおそれ
Summary
sf-mcpの1.3.2までには、Salesforce CLIのフラグ値を介してOSコマンドを注入される脆弱性があります。細工された値を送られると、MCPサーバーの実行ユーザーの権限でシェルコマンドが動くおそれがあります。修正版の公開は確認できていないため、最新の情報を確認してください。
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.
sf-mcpの1.3.2までには、Salesforce CLIのフラグ値を介してOSコマンドを注入される脆弱性があります。細工された値を送られると、MCPサーバーの実行ユーザーの権限でシェルコマンドが動くおそれがあります。修正版の公開は確認できていないため、最新の情報を確認してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| codefriarsf-mcp |
≤ 1.3.2→ Not listed |
Not listed |
This record does not list fixed versions. Check the article or the vendor advisory in the references for whether and where it is fixed.
Original description The description as published by the source.
Codefriar sf-mcp through 1.3.2 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying crafted Salesforce CLI tool flag values. Because escapeValue() in src/utils.ts fails to neutralize backticks, $() substitution, and other shell metacharacters, these values reach execSync in executeSfCommand and run as the MCP server user.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- report github.com
- web github.com
- web github.com