HighVulnerability
GHSA-r4f2-3m54-pp7q: PraisonAI Has Sandbox Escape via shell=True and Bypassable Blocklist in SubprocessSandbox
- Identifiers
- CVE-2026-34955GHSA-r4f2-3m54-pp7q
- Published
- Record updated
- Affected
- praisonai <= 4.5.96
- Fixed in
- 4.5.97
- 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.4%
Summary
In PraisonAI, `SubprocessSandbox` runs commands through `subprocess.run()` with `shell=True` and blocks dangerous commands only by string-pattern matching. The blocklist omits `sh` and `bash`, so in STRICT mode a call such as `sh -c 'id'` escapes the sandbox, and blocked commands like curl, wget, nc and ssh become reachable. Combined with agent prompt injection, an attacker could reach the network, filesystem and cloud metadata services. The source reports testing on praisonai==4.5.87.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
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