CriticalVulnerability
GHSA-4mr5-g6f9-cfrh: PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)
- Identifiers
- CVE-2026-47392GHSA-4mr5-g6f9-cfrh
- Published
- Record updated
- Affected
- PraisonAI <= 4.6.39, fixed in 4.6.40, released May 19, 2026, 10 days before disclosure
- praisonaiagents <= 1.6.39, fixed in 1.6.40, released May 19, 2026, 10 days before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.9%
Summary
PraisonAI's `execute_code()` in `praisonaiagents/tools/python_tools.py` (v1.6.37, subprocess sandbox mode) can be fully bypassed. Using `print.__self__` to reach the real `builtins` module, then `vars()` and runtime string construction to obtain `__import__`, lets an attacker run arbitrary OS commands on the host, defeating the sandbox. The bypass survives patches for CVE-2026-39888, CVE-2026-34938 and CVE-2026-40158, and the advisory rates it CVSS 9.9 Critical.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- MediumCVE-2026-138033: mcp-video-analyzer server-side request forgery via video URL inputsSimilar attack · NVD/CVE Database
- MediumSwitzerland Confirms AI-Assisted Cyberattacks Breached Critical Infrastructure OperatorsSimilar attack · The Hacker News
- MediumCVE-2026-137668: ONNX ONNXMLTools cross site scripting in visualize_model via producer_nameSimilar attack · NVD/CVE Database
- MediumCVE-2026-137667: ONNX ONNXMLTools cross site scripting in Model VisualizationSimilar attack · NVD/CVE Database
- InfoEvaluating transformer based language model robustness under low rate training data poisoningSimilar attack · OpenAlex (peer-reviewed AI security)