# CVE-2026-39888: PraisonAIAgents has a sandbox escape via exception frame traversal in `execute_code` (subprocess mode)

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2026-04-08T19:17:28.000Z
- Modified: 2026-11-16T16:15:05.353Z
- Also known as: GHSA-qf73-2hrx-xprp, PYSEC-2026-486
- Weaknesses: CWE-657, CWE-693
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- MervinPraison praisonaiagents: < 1.5.115
- praisonaiagents (PyPI): before 1.5.115
- praison praisonai: before 1.5.115

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.9 Critical `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`

## 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> (package, web)
- <https://github.com/advisories/GHSA-qf73-2hrx-xprp> (advisory)

## Sources

- CVE List: [CVE-2026-39888](https://www.cve.org/CVERecord?id=CVE-2026-39888), CVE Terms of Use, modified 2026-04-09
- GitHub Advisory Database: [GHSA-qf73-2hrx-xprp](https://github.com/advisories/GHSA-qf73-2hrx-xprp), CC-BY-4.0, modified 2026-11-16
- NVD: [CVE-2026-39888](https://nvd.nist.gov/vuln/detail/CVE-2026-39888), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-486](https://osv.dev/vulnerability/PYSEC-2026-486), CC-BY-4.0, modified 2026-07-13

---

Page: https://cve.day/CVE-2026-39888 · Whole record: https://cve.day/CVE-2026-39888.json · Rebuilt by cve.day 2026-11-25T22:59:18.315Z
