Skip to content
CriticalVulnerability

GHSA-qf73-2hrx-xprp: PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)

Published
Record updated
View JSON
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.