PraisonAI: Compute-bridged file tools allow shell command injection
CVE-2026-57117 · GHSA-w6h2-fr4q-xvxv · published 2026-06-18 · updated 2026-07-20
- Severity
- High
- CVSS score
- 8.8
- Chance of exploitation (EPSS)
- 0.58%
- Fixed in
- 4.6.59
- Exploitation Public proof of concept
- Automatable No
- Technical impact Total
- CISA SSVC
An application that exposes a PraisonAI agent using LocalManagedAgent or SandboxedAgent with a compute provider and a restricted file-tool set can be tricked into executing shell commands through a path argument to readfile or listfiles. This can bypass least-privilege tool configuration and tool-approval expectations. A prompt-injection path, chat endpoint, automation webhook, or other user-controlled agent task can supply the file path argument without the operator granting execute_command.
Upgrade praisonai to 4.6.59 or later. If you start it from an MCP config with npx or uvx, pin that version so an old cached copy is not used.
Do not implement file operations by constructing shell command strings from path/content arguments. Preferred fix: 1. Add provider-native file APIs for read, write, and list operations, or pass arguments as structured argv where the provider supports it. 2. Preserve the normal file-tool path validation and workspace boundary checks for compute-bridged file tools. 3. Treat writefile content as data, not shell source. The current heredoc construction is also unsafe if content can contain the delimiter. 4. 5. Keep executecommand as the only bridge path that intentionally accepts a shell command string, with critical approval semantics.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| praisonai | PyPI | >= 4.6.10, <= 4.6.58 | 4.6.59 |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- CriticalPraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Callspraisonai
- CriticalPraisonAI: Code Injection via f-string Interpolation in Deploy API Server Generationpraisonai
- CriticalPraisonAI has a Browser Server WebSocket origin validation bypass via unanchored regex (patch bypass of CVE-2026-40289 / GHSA-8x8f-54wf-vv92praisonai
- CriticalPraisonAI: Arbitrary File Read/Write via `multiedit` Tool Without Path Validationpraisonai
- CriticalPraisonAI: Unauthenticated RCE via Jobs API + Approval Bypasspraisonaiagents, praisonai
- CriticalPraisonAI: AgentOS remains unauthenticated after incomplete fix version and allows remote agent invocationpraisonai
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.