{"vuln_id":"GHSA-9gm9-c8mq-vq7m","aliases":["CVE-2026-34935"],"description":"PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command()","published_at":"2026-04-01T23:20:00Z","modified_at":"2026-11-16T15:58:57Z","first_seen_at":"2026-11-21T19:15:20.271134Z","severity":"critical","severity_source":"ghsa","cvss_score":9.8,"cvss_vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-78"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-9gm9-c8mq-vq7m"},"matched_alias":null,"items":[{"id":2524,"source":{"id":"ghsa","name":"GitHub Security Advisories"},"title":"GHSA-9gm9-c8mq-vq7m / CVE-2026-34935: PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command()","summary":"PraisonAI: OS Command Injection in MCPHandler.parse_mcp_command()\n\n### Summary\n\nThe `--mcp` CLI argument is passed directly to `shlex.split()` and forwarded through the call chain to `anyio.open_process()` with no validation, allowlist check, or sanitization at any hop, allowing arbitrary OS command execution as the process user.\n\n### Details\n\n`cli/features/mcp.py:61` (source) -> `praisonaiagents/mcp/mcp.py:345` (hop) -> `mcp/client/stdio/__init__.py:253` (sink)\n```python\n# source\nparts = shlex.split(command)\n\n# hop\ncmd, args, env = self.parse_mcp_command(command, env_vars)\nself.server_params = StdioServerParameters(command=cmd, args=arguments)\n\n# sink\nprocess = await anyio.open_process([command, *args])\n\n```\n\nFixed in commit `47bff65413beaa3c21bf633c1fae4e684348368c` (v4.5.69) by introducing a command allowlist:\n```python\nALLOWED_COMMANDS = {\"npx\", \"uvx\", \"node\", \"python\"}\nif cmd not in ALLOWED_COMMANDS:\n    raise ValueError(f\"Disallowed command: {cmd}\")\n```\n\n### PoC\n```python\n# tested on: praisonai==4.5.48\n# install: pip install praisonai==4.5.48\n# run: praisonai --mcp \"bash -c 'id > /tmp/pwned'\"\n# verify: cat /tmp/pwned\n# expected output: uid=1000(...) gid=1000(...) groups=1000(...)\n```\n\n### Impact\n\nAny deployment where the `--mcp` argument is influenced by untrusted input is exposed to full OS command execution as the process user. No authentication is required.\n\nAffected packages: pip:praisonai\nPatched: praisonai 4.5.69","url":"https://github.com/advisories/GHSA-9gm9-c8mq-vq7m","published_at":"2026-04-01T23:20:00Z","updated_at":"2026-11-16T15:58:57Z","fetched_at":"2026-11-21T19:15:18.416905Z","severity":"critical","cvss_score":9.8,"epss":0.00857,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":null,"product":"praisonai","vuln_id":"CVE-2026-34935","vuln_ids":["CVE-2026-34935","GHSA-9GM9-C8MQ-VQ7M"],"tags":["ghsa","pip","CWE-78"],"cluster_id":2493,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/2524","html":"https://vulnwatch.ve1ve2.com/item/2524"}}]}