{"id":"CVE-2026-47392","published":"2026-07-21T15:27:16Z","modified":"2026-07-21T16:39:40Z","title":"PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00884,"percentile":0.6009,"provenance":"source"},"cwes":[{"id":"CWE-184","name":"Incomplete List of Disallowed Inputs"},{"id":"CWE-693","name":"Protection Mechanism Failure"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4mr5-g6f9-cfrh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/MervinPraison/PraisonAI/pull/1684","tags":["x_refsource_MISC"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6","tags":["x_refsource_MISC"]}],"priority":{"score":18.9,"factors":[{"name":"EPSS percentile","points":12.02},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":["< 4.6.40"]},{"vendor":"MervinPraison","product":"< 1.6.40","versions":["praisonaiagents"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-07-21T16:39:00.607801Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"praisonaiagents","vulnerableRanges":["<1.6.40"],"patched":["1.6.40"],"from":["GHSA-4mr5-g6f9-cfrh","PYSEC-2026-483"],"provenance":"source"},{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":["<4.6.40"],"patched":["4.6.40"],"from":["GHSA-4mr5-g6f9-cfrh","PYSEC-2026-463"],"provenance":"source"}],"summary":{"text":"PraisonAI's execute_code() function in praisonaiagents/tools/python_tools.py (subprocess sandbox mode, prior to praisonaiagents 1.6.40 and PraisonAI 4.6.40) has an incomplete blocklist that can be bypassed by using print.__self__ to reach the real Python builtins module. An attacker with network access and low-privileged authenticated access, who can submit code for execution, can use this to run arbitrary operating system commands on the host and escape the sandbox entirely, with no user interaction or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:16:35Z"},"euvd":{"id":"EUVD-2026-46282","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-mervinpraison-praisonaiagents-cve-2026-39888","parents":[{"from":"CVE-2026-39888","to":"CVE-2026-47392","relation":"bypass","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"bypass","quote":"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).","from":"CVE.org","in":"CVE-2026-47392"}]}],"packageHistory":[{"cve":"CVE-2026-44335","published":"2026-05-08","fixed":"1.6.32","kev":false},{"cve":"CVE-2026-44339","published":"2026-05-08","fixed":"1.6.37","kev":false,"link":{"from":"CVE-2026-44339","to":"CVE-2026-47392","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:praisonaiagents","fromFixed":"1.6.37","toFixed":"1.6.40","daysApart":74}]}},{"cve":"CVE-2026-47390","published":"2026-07-21","fixed":"1.6.40","kev":false},{"cve":"CVE-2026-47392","published":"2026-07-21","fixed":"1.6.40","kev":false},{"cve":"CVE-2026-47395","published":"2026-07-21","fixed":"1.6.40","kev":false},{"cve":"CVE-2026-55522","published":"2026-08-05","fixed":"1.6.58","kev":false},{"cve":"CVE-2026-55523","published":"2026-08-05","fixed":"1.6.58","kev":false}],"package":"PyPI:praisonaiagents"}}