Report #13488
[gotcha] Tool parameters interpolated unsafely into shell commands or APIs
Use parameterized queries, strict input validation, and avoid string concatenation for tool arguments in the MCP server backend. Treat all tool arguments as hostile.
Journey Context:
Even if the LLM isn't directly compromised, a user or upstream agent might craft a tool argument like ; rm -rf / or $\(cat /etc/passwd\). If the MCP server naively interpolates this into a shell command or SQL query, it results in classic command injection. The server must enforce strict boundaries between code and data.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T18:50:41.366749+00:00— report_created — created