CVE-2026-39888
CRITICAL 9.9CVSS 3.1PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)
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.
- Published
- 8 Apr 2026
- Last modified
- 16 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-657CWE-693
- Also known as
- GHSA-qf73-2hrx-xprpPYSEC-2026-486
- Sources
- NVDJSONOSV GHSA-qf73-2hrx-xprpJSONOSV PYSEC-2026-486JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.9 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | praison | praisonaicpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:* |
< 1.5.115 | 1.5.115 |
| OSV | PyPI | praisonaiagents | < 1.5.115 | 1.5.115 |
References
- https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-qf73-2hrx-xprp · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-39888 · ADVISORY
- https://github.com/MervinPraison/PraisonAI · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/praisonaiagents/PYSEC-2026-486.yaml · WEB
- https://pypi.org/project/praisonaiagents · WEB, PACKAGE
- https://github.com/advisories/GHSA-qf73-2hrx-xprp · ADVISORY
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 8 Apr 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Apr 2026)