{"cve":"CVE-2026-39888","nvd":{"published":"2026-04-08T21:17:00.990","modified":"2026-07-24T21:10:00.143","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","score":9.9},"cwes":["CWE-657","CWE-693"],"references":["https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-qf73-2hrx-xprp"],"products":["praison:praisonai"],"source":"nvd","synced_at":"2026-10-19T22:28:59.047572785+00:00"},"epss":{"cve":"CVE-2026-39888","score":0.00485,"percentile":0.41807,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-qf73-2hrx-xprp","url":"https://osv.dev/vulnerability/GHSA-qf73-2hrx-xprp","summary":"PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)","modified":"2026-06-29T12:26:40.508961102Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.5.115"],"fixed":["1.5.115"]}]},{"id":"PYSEC-2026-486","url":"https://osv.dev/vulnerability/PYSEC-2026-486","summary":"PraisonAI has sandbox escape via exception frame traversal in `execute_code` (subprocess mode)","modified":"2026-07-13T16:15:33.178413205Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.5.115"],"fixed":["1.5.115"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}