CVE-2026-39888
CRITICALDescription
PraisonAI is a multi-agent teams system. Prior to 1.5.115, execute_code() in praisonaiagents.tools.python_tools defaults to sandbox_mode="sandbox", which runs user code in a subprocess wrapped with a restricted __builtins__ dict and an AST-based blocklist. The AST blocklist embedded inside the subprocess wrapper (blocked_attrs of python_tools.py) contains only 11 attribute names — a strict subset of the 30+ names blocked in the direct-execution path. The four attributes that form a frame-traversal chain out of the sandbox are all absent from the subprocess list (__traceback__, tb_frame, f_back, and f_builtins). Chaining these attributes through a caught exception exposes the real Python builtins dict of the subprocess wrapper frame, from which exec can be retrieved and called under a non-blocked variable name — bypassing every remaining security layer. This vulnerability is fixed in 1.5.115.
How to fix
TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works
Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.
CVSS v3 Vector
Exploitability
Impact
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Exploit Intelligence
Moderate risk: more likely to be exploited than 42% of all known CVEs.
References
Related Vulnerabilities
Other CWE-657 vulnerabilities, ordered by exploit likelihood. View all
| CVE | Severity | CVSS | EPSS | Exploited | Fix |
|---|---|---|---|---|---|
| CVE-2023-29320 | High | 7.8 | 4.6% | - | Fix |
| CVE-2022-28244 | Medium | 6.3 | 3.5% | - | - |
| CVE-2021-44714 | Low | 2.5 | 2.5% | - | - |
| CVE-2021-28583 | High | 7.5 | 1.9% | - | Fix |
| CVE-2017-6032 | Medium | 5.3 | 1.7% | - | - |
| CVE-2021-36061 | Medium | 5.4 | 1.6% | - | - |
Embed a live status badge for CVE-2026-39888
Markdown
[](https://tridentstack.com/cve/CVE-2026-39888)HTML
<a href="https://tridentstack.com/cve/CVE-2026-39888"><img src="https://tridentstack.com/cve/badge/CVE-2026-39888.svg" alt="CVE-2026-39888"></a>Find and fix vulnerabilities across your fleet
TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.
This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2026-04-15.