Kali-GPT command execution in execute_tool scanner parameters
alishahid74 kali-gpt
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| alishahid74 kali-gpt |
| No fix yet |
Original description
Kali-GPT through commit a608c74 contains an OS command injection vulnerability in execute_tool() in kali_gpt/tools/mcp_server.py that allows MCP clients to run commands via unsanitized scanner parameters. Attackers or prompt-injected agents can embed shell metacharacters in parameters like target, ports, domain, wordlist, or url, executed via subprocess.run with shell=True as the MCP server user.
From the CVE record · VulnCheck