Skip to content

Hide Navigation Hide TOC

PraisonAI parse_mcp_command() CLI Argument Command Injection (CVE-2026-34935) - ATR-2026-00540 (91a7558d-8cb8-5c2e-a92c-268a4453bb80)

Detects CVE-2026-34935 (CVSS ~9.8 CRITICAL, CWE-78 / GHSA-9qhq-v63v-fv3j): PraisonAI 4.5.15–4.5.68 passes the --mcp CLI argument directly to parse_mcp_command(), which calls shlex.split() and then anyio.open_process() without any validation. An attacker-controlled --mcp value containing a shell interpreter with an inline-exec flag (-c, -e, --exec) or shell metacharacters reaches the OS as a live subprocess, enabling arbitrary code execution. PoC payloads: --mcp "bash -c 'cat /etc/passwd'" and --mcp "python -c 'import os; os.system(\"id\")'" Detection covers: (a) --mcp argument values containing a shell interpreter with inline-exec flag; (b) --mcp values with shell metacharacters (pipe, ampersand, backtick, $()); (c) praisonai CLI invocations with subprocess execution primitives in --mcp. Complements ATR-2026-00531 (PraisonAI HTTP API auth bypass) and ATR-2026-00528 (PraisonAI AUTH_ENABLED hardcoded default).

Cluster A Galaxy A Cluster B Galaxy B Level
Exploit Public-Facing Application - T1190 (3f886f2a-874f-4333-b794-aa6075009b1c) Attack Pattern PraisonAI parse_mcp_command() CLI Argument Command Injection (CVE-2026-34935) - ATR-2026-00540 (91a7558d-8cb8-5c2e-a92c-268a4453bb80) Agent Threat Rules 1
Command and Scripting Interpreter - T1059 (7385dfaf-6886-4229-9ecd-6fd678040830) Attack Pattern PraisonAI parse_mcp_command() CLI Argument Command Injection (CVE-2026-34935) - ATR-2026-00540 (91a7558d-8cb8-5c2e-a92c-268a4453bb80) Agent Threat Rules 1
Exploit Public-Facing Application (47d73872-5336-44f7-81e3-d30bc7e039dd) MITRE ATLAS Attack Pattern PraisonAI parse_mcp_command() CLI Argument Command Injection (CVE-2026-34935) - ATR-2026-00540 (91a7558d-8cb8-5c2e-a92c-268a4453bb80) Agent Threat Rules 1
AI Model Inference API Access (90a420d4-3f03-4800-86c0-223c4376804a) MITRE ATLAS Attack Pattern PraisonAI parse_mcp_command() CLI Argument Command Injection (CVE-2026-34935) - ATR-2026-00540 (91a7558d-8cb8-5c2e-a92c-268a4453bb80) Agent Threat Rules 1