{"cve":"CVE-2026-47392","nvd":{"published":"2026-07-21T16:17:12.087","modified":"2026-07-21T18:59:43.940","status":"Deferred","description":"PraisonAI is a multi-agent teams system. Prior to version 4.6.40 of PraisonAI, corresponding to version 1.6.40 of praisonaiagents, `execute_code()` in `praisonaiagents/tools/python_tools.py` (v1.6.37, subprocess sandbox mode) can be fully bypassed using `print.__self__` to retrieve the real Python `builtins` module, from which `__import__` can be extracted via `vars()` and runtime string construction. This achieves arbitrary OS command execution on the host, completely defeating the sandbox. This is a novel bypass that survives all patches for CVE-2026-39888 (frame traversal), CVE-2026-34938 (str subclass), and CVE-2026-40158 (`type.__getattribute__` trampoline). PraisonAI version 4.6.40 and praisonaiagents version 1.6.40 contain an updated fix.","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-184","CWE-693"],"references":["https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6","https://github.com/MervinPraison/PraisonAI/pull/1684","https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4mr5-g6f9-cfrh","https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4mr5-g6f9-cfrh"],"products":[],"source":"nvd","synced_at":"2026-10-19T22:45:53.305392138+00:00"},"epss":{"cve":"CVE-2026-47392","score":0.00884,"percentile":0.59234,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-4mr5-g6f9-cfrh","url":"https://osv.dev/vulnerability/GHSA-4mr5-g6f9-cfrh","summary":"PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)","modified":"2026-06-29T12:26:46.215625163Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.6.40"],"fixed":["1.6.40"]},{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.6.40"],"fixed":["4.6.40"]}]},{"id":"PYSEC-2026-463","url":"https://osv.dev/vulnerability/PYSEC-2026-463","summary":"PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)","modified":"2026-07-13T16:15:30.097605180Z","packages":[{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.6.40"],"fixed":["4.6.40"]}]},{"id":"PYSEC-2026-483","url":"https://osv.dev/vulnerability/PYSEC-2026-483","summary":"PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)","modified":"2026-07-13T16:15:10.474089680Z","packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.6.40"],"fixed":["1.6.40"]}]}],"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."]}