提交 #807752: 54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Command Injection信息

标题54yyyu code-mcp 4cfc4643541a110c906d93635b391bf7e357f4a8 Command Injection
描述The MCP tool git_operation is intended to execute git subcommands, but it concatenates user-controlled input into a shell command string and executes it with shell=True. The existing denylist only blocks a few git keywords (reset --hard, clean -f) and does not neutralize shell metacharacters. As a result, an attacker can append arbitrary shell payloads and execute commands outside intended git-only behavior.
来源⚠️ https://github.com/54yyyu/code-mcp/issues/5
用户
 CPT_Penner (UID 97246)
提交2026-04-18 20時29分 (2 月前)
管理2026-05-04 23時26分 (16 days later)
状态已接受
VulDB条目361072 [54yyyu code-mcp 直到 4cfc4643541a110c906d93635b391bf7e357f4a8 MCP Tool src/code_mcp/server.py git_operation 权限提升]
积分20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!