Description
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.
Published: 2026-08-05
Score: 7.8 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

PraisonAI workflow "include" allows attacker‑controlled local recipes to cause arbitrary Python code execution during include setup. The flaw originates from the Workflow._execute_include() function, which uses importlib.util.spec_from_file_location() to import a tools.py script without checking the PRAISONAI_ALLOW_TEMPLATE_TOOLS/PRAISONAI_ALLOW_LOCAL_TOOLS gates or routing through the secure loader. Because of this, a workflow that includes an untrusted local recipe directory runs that recipe's tools.py module before any child workflow parsing or model call, giving an attacker the ability to execute module‑level code as the PraisonAI process user.

Affected Systems

Vulnerable versions are PraisonAI 3.9.26 through 4.6.57 and praisonaiagents 0.12.12 through 1.6.57. The fix is available in PraisonAI 4.6.58 and praisonaiagents 1.6.58.

Risk and Exploitability

The CVSS score is 7.8, indicating high severity. EPSS is not available, so the exploitation probability is unknown, and the vulnerability is not listed in the KEV catalog. Attackers who can influence workflow inclusion—such as through user‑supplied recipes or unmanaged internal workflows—can trigger the flaw. The vulnerability bypasses the hardening that protected earlier tools.py RCE issues, so the exploit path is straightforward: supply a crafted local recipe whose tools.py contains malicious code, trigger a workflow that includes it, and the code runs with process privileges.

Generated by OpenCVE AI on August 5, 2026 at 20:22 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.6.58 or later and praisonaiagents to version 1.6.58 or later.
  • Remove or restrict the use of local recipe directories that create a potential for untrusted tools.py files, ensuring only trusted, signed recipes are included in workflows.
  • Set the environment variables PRAISONAI_ALLOW_TEMPLATE_TOOLS=0 and PRAISONAI_ALLOW_LOCAL_TOOLS=0 to disable autoload of local tools, which limits accidental inclusion of malicious code even though the bug bypasses these gates.

Generated by OpenCVE AI on August 5, 2026 at 20:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 05 Aug 2026 20:45:00 +0000

Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Mervinpraison praisonaiagents
Vendors & Products Mervinpraison
Mervinpraison praisonai
Mervinpraison praisonaiagents

Wed, 05 Aug 2026 19:45:00 +0000

Type Values Removed Values Added
Description 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.
Title PraisonAI workflow include bypasses tools.py autoload opt-in and executes included recipe code
Weaknesses CWE-426
CWE-829
CWE-94
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}


Subscriptions

Mervinpraison Praisonai Praisonaiagents
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-08-05T19:01:43.051Z

Reserved: 2026-06-16T22:44:22.284Z

Link: CVE-2026-55522

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-05T20:30:06Z

Weaknesses
  • CWE-426

    Untrusted Search Path

  • CWE-829

    Inclusion of Functionality from Untrusted Control Sphere

  • CWE-94

    Improper Control of Generation of Code ('Code Injection')