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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| alishahid74 | kali-gpt | — | — |
References
- GitHub Issue #12 issue-tracking
- https://github.com/alishahid74/kali-gpt product
- https://github.com/alishahid74/kali-gpt/blob/a608c74e99910232dd208fee99de860458672b82/kali_gpt/tools/mcp_server.py#L229-L356 technical-description
- VulnCheck Advisory: Kali-GPT through commit a608c74 OS Command Injection via MCP Scanner Tool Parameters third-party-advisory