HighVulnerability
GHSA-w37c-qqfp-c67f: PraisonAI: Shell Injection in run_python() via Unescaped $() Substitution
- Identifiers
- CVE-2026-34937GHSA-w37c-qqfp-c67f
- Published
- Record updated
- Affected
- praisonaiagents <= 1.5.89
- Fixed in
- 1.5.90
- released March 31, 2026, 1 day before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.6%
Summary
PraisonAI's `run_python()` in `praisonai` builds a shell command by placing user-controlled code inside `python3 -c "<code>"` and runs it with `subprocess.run(..., shell=True)`. Its escaping only handles `\` and `"`, so `$()` and backtick substitutions execute as OS commands before Python starts, enabling arbitrary command execution as the process user. The advisory notes the function is reachable through indirect prompt injection, and the auto-generated Flask server ships with `AUTH_ENABLED = False` when no token is configured.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Topics
Related items
- CriticalGHSA-9x8x-crjq-g64h: Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routesSimilar attack · GitHub Advisory Database
- HighGHSA-24pw-rf5p-mgp7: Jupyter MCP Server: Unauthenticated management routes can hijack the Jupyter backend in standalone HTTP modeSimilar attack · GitHub Advisory Database
- HighGHSA-m932-63jc-4jqq: k8s-mcp-server: Missing authentication on default SSE/HTTP transport allows unauthenticated Kubernetes tool executionSimilar attack · GitHub Advisory Database
- HighGHSA-3mgh-93r5-r7jf: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCESimilar attack · GitHub Advisory Database
- HighGHSA-qx49-fqc8-xw99: Model Context Protocol Python SDK: OAuth client could send credentials to an authorization server chosen by the MCP serverSimilar attack · GitHub Advisory Database