CriticalVulnerability
GHSA-qf73-2hrx-xprp: PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)
- Identifiers
- CVE-2026-39888GHSA-qf73-2hrx-xprp
- Published
- Record updated
- Affected
- praisonaiagents <= 1.5.114
- Fixed in
- 1.5.115
- released April 7, 2026, 1 day before disclosure
- Known exploitation
- Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
- EPSS
- 0.5%
Summary
The `execute_code()` function in `praisonaiagents.tools.python_tools` defaults to `sandbox_mode="sandbox"`, which runs code in a subprocess with an AST blocklist. The subprocess wrapper's inline `blocked_attrs` set (line 143) omits `__traceback__`, `tb_frame`, `f_back` and `f_builtins`, which the direct-mode list blocks, letting attackers chain them through a caught exception to reach the wrapper's `builtins` and call `exec`. Tested on praisonaiagents 1.5.113 and rated CVSS 9.9 Critical.
Mitigation
The source does not state a fix yet. Check the original advisory for updates.
Related items
- MediumCVE-2026-134825: Gradio 6.27.0 before 6.32.0 contains an authentication bypass vulnerability in gradio/history.py that allows remote…Similar attack · NVD/CVE Database
- MediumCVE-2026-124248: GPTranslate WordPress plugin stored cross-site scripting via comment parameterSimilar attack · NVD/CVE Database
- MediumAmazon: China-Linked Hackers’ AI Agents Exploited Medical Software Zero-DaySimilar attack · SecurityWeek
- MediumAttackers' AI Agents Found a Zero-Day in Medical-Imaging Software and Gained Root AccessSimilar attack · The Hacker News
- MediumCVE-2026-54026: LibreChat message injection via conversationId in request bodySimilar attack · NVD/CVE Database