إرسال #803082: eiliyaabedini aider-mcp 667b914301aada695aab0e46d1fb3a7d5e32c8af Command Injectionالمعلومات

عنوانeiliyaabedini aider-mcp 667b914301aada695aab0e46d1fb3a7d5e32c8af Command Injection
الوصفaider-mcp exposes the code_with_ai MCP tool, which accepts caller-controlled working_dir and editable_files. After Aider runs, the server attempts to summarize changes by constructing a git diff command string: files_arg = " ".join(relative_editable_files) diff_cmd = f"git -C {working_dir} diff -- {files_arg}" subprocess.check_output(diff_cmd, shell=True, text=True, stderr=subprocess.PIPE) Because neither working_dir nor the file names are quoted or escaped, shell metacharacters in editable_files can terminate the intended git diff command and execute arbitrary operating-system commands on the host.
المصدر⚠️ https://github.com/eiliyaabedini/aider-mcp/issues/1
المستخدم
 LittleW (UID 97283)
ارسال12/04/2026 12:10 PM (2 أشهر منذ)
الاعتدال28/04/2026 03:06 PM (16 days later)
الحالةتمت الموافقة
إدخال VulDB359964 [eiliyaabedini aider-mcp حتى 667b914301aada695aab0e46d1fb3a7d5e32c8af code_with_ai aider_mcp.py working_dir/editable_files تجاوز الصلاحيات]
النقاط20

Are you interested in using VulDB?

Download the whitepaper to learn more about our service!