{"id":"CVE-2026-55522","published":"2026-08-05T19:01:43Z","modified":"2026-08-06T18:45:05Z","title":"PraisonAI workflow include bypasses tools.py autoload opt-in and executes included recipe code","vendor":"MervinPraison","product":"PraisonAI","tier":"tail","description":{"text":"PraisonAI is a multi-agent teams system. In versions 3.9.26 through 4.6.57 of praiseonai and 0.12.12 through 1.6.57 of praiseonaiagents, the workflow \"include\" feature is vulnerable to code execution. Workflow._execute_include() implicitly imports and runs an included recipe's tools.py via a raw importlib.util.spec_from_file_location() and spec.loader.exec_module() call, without honoring the PRAISONAI_ALLOW_TEMPLATE_TOOLS/PRAISONAI_ALLOW_LOCAL_TOOLS autoload opt-in gates or routing through the centralized safe loader that protects the other tools.py autoload paths. As a result, a workflow that includes an attacker-controlled local recipe directory executes arbitrary module-level Python code during include setup, before any child workflow parsing or model call, and the same sink is reachable through the higher-level praisonai.recipe.run() recipe API. An attacker who can cause a victim process to run a workflow or recipe that includes an untrusted local recipe achieves arbitrary Python code execution as the PraisonAI process user, a variant that bypasses the hardening applied to the previously disclosed automatic tools.py RCE advisory family. This issue has been fixed in version 4.6.58 of praisonai and 1.6.58 of praisonaiagents.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00224,"percentile":0.13284,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-426","name":"Untrusted Search Path"},{"id":"CWE-829","name":"Inclusion of Functionality from Untrusted Control Sphere"}],"references":[{"url":"https://github.com/MervinPraison/PraisonAI/security/advisories/GHSA-hxmv-c4g6-5fqc","tags":["x_refsource_CONFIRM"]}],"priority":{"score":8.1,"factors":[{"name":"EPSS percentile","points":2.66},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"mervinpraison","affectedVersions":[{"vendor":"MervinPraison","product":"PraisonAI","versions":[">= 3.9.26, < 4.6.58"]},{"vendor":"MervinPraison","product":"praisonaiagents","versions":[">= 0.12.12, < 1.6.58"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-08-06T18:43:28.382511Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"praisonaiagents","vulnerableRanges":[">=0.12.12, <1.6.58"],"patched":["1.6.58"],"from":["GHSA-hxmv-c4g6-5fqc","PYSEC-2026-3903"],"provenance":"source"},{"ecosystem":"PyPI","package":"PraisonAI","vulnerableRanges":[">=3.9.26, <4.6.58"],"patched":["4.6.58"],"from":["GHSA-hxmv-c4g6-5fqc","PYSEC-2026-3891"],"provenance":"source"}],"summary":{"text":"PraisonAI's workflow \"include\" feature executes an included recipe's tools.py file directly through a raw importlib loader, bypassing the opt-in gates and centralized safe loader that protect other tools.py autoload paths, in the praisonai and praisonaiagents packages. An attacker who can get a victim process to run a workflow or recipe that includes an attacker-controlled local recipe directory can execute arbitrary Python code as the PraisonAI process user, with no authentication required but user interaction needed to run the workflow.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:10:08Z"},"euvd":{"id":"EUVD-2026-53580","exploited":false,"provenance":"source"}}