← Back to search

CVE-2026-117569

7.8 HIGHpublic exploit available

Published 2026-10-27 · Updated 2026-10-27

AI risk analysis

Summary
Kali-GPT contains an OS command injection flaw in its execute_tool() function where unsanitized user-controlled parameters (e.g., target, ports, domain) are passed directly to subprocess.run with shell=True, enabling attackers or prompt-injected agents to execute arbitrary commands as the MCP server user.
Exploitability
Exploitation requires local access and low privileges (PR:L), with attackers needing to inject shell metacharacters into tool parameters via MCP client requests or prompt injection.
Blast radius
Successful exploitation allows full compromise of the affected system—including confidentiality, integrity, and availability—as the attacker gains the privileges of the MCP server user.
Detection
Monitor for subprocess calls with shell=True in mcp_server.py logs, especially those containing shell metacharacters (e.g., ;, |, &, $(), backticks) in parameters like target, ports, or domain; also watch for unexpected child processes spawned by the MCP server process.
Prioritized remediation
Upgrade to Kali-GPT commit a608c75 or later, which removes shell=True and sanitizes inputs; if upgrading is not possible, disable the affected MCP server functionality until a patch is applied.
os-command-injectionmcpprompt-injectionsubprocessshell-injection

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CWE-78

Public exploit & PoC references

All references

Source data: NVD (nvd.nist.gov), public domain. Exploit-DB.ai adds local AI analysis for defensive use only.

Related CVEs

Related by shared AI tags and CWE weakness class. Browse the full archive.