{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-47392","id":"CVE-2026-47392","title":"PraisonAI vulnerable to sandbox escape via `print.__self__` builtins module leak in `execute_code` (subprocess mode)","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 construct","descriptionLong":"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.","published":"2026-07-21T15:27:16.557Z","updated":"2026-10-28T02:31:12.536832925Z","reserved":"2026-05-19T19:22:45.729Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},"metrics":[{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub_M"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"github.com"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"OSV"},{"version":"3.1","score":9.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":["MervinPraison PraisonAI","MervinPraison < 1.6.40"],"affectedProducts":[{"vendor":"MervinPraison","product":"PraisonAI","defaultStatus":null,"versions":[{"version":"< 4.6.40","status":"affected"}],"platforms":[]},{"vendor":"MervinPraison","product":"< 1.6.40","defaultStatus":null,"versions":[{"version":"praisonaiagents","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"praisonaiagents","purl":"pkg:pypi/praisonaiagents","ranges":["<1.6.40"],"fixed":["1.6.40"],"advisory":"GHSA-4mr5-g6f9-cfrh"},{"ecosystem":"PyPI","name":"praisonai","purl":"pkg:pypi/praisonai","ranges":["<4.6.40"],"fixed":["4.6.40"],"advisory":"GHSA-4mr5-g6f9-cfrh"}],"cwes":["CWE-184","CWE-693"],"aliases":["GHSA-4mr5-g6f9-cfrh","PYSEC-2026-463","PYSEC-2026-483"],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-4mr5-g6f9-cfrh","tags":["x_refsource_CONFIRM","exploit","advisory","web"]},{"url":"https://github.com/MervinPraison/PraisonAI/pull/1684","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/MervinPraison/PraisonAI/commit/b0d8f777528f3253a0cfb0a3ef65455da6ae32f6","tags":["x_refsource_MISC","fix"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/47xxx/CVE-2026-47392.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47392","tags":["advisory"]},{"url":"https://github.com/MervinPraison/PraisonAI","tags":["package"]},{"url":"https://pypi.org/project/praisonai","tags":["package"]},{"url":"https://github.com/advisories/GHSA-4mr5-g6f9-cfrh","tags":["advisory"]},{"url":"https://pypi.org/project/praisonaiagents","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total"},"epss":0.00884,"epssPercentile":0.59966,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-47392","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47392","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-47392","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-4mr5-g6f9-cfrh","ok":true,"note":"GHSA-4mr5-g6f9-cfrh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-47392","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}