CVE-2026-55522: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
CVE-2026-55522 is a high-severity code injection vulnerability in MervinPraison PraisonAI affecting versions 3.9.26 through 4.6.57 and praisonaiagents 0.12.12 through 1.6.57. The flaw arises from the workflow "include" feature which executes an included recipe's tools.py file without proper safety checks, allowing arbitrary Python code execution. This occurs because the import mechanism bypasses configured autoload gates and safe loaders. The vulnerability enables an attacker who can induce a victim to run a crafted workflow or recipe to execute arbitrary code with the privileges of the PraisonAI process user. The issue has been fixed in versions 4.6.58 of praisonai and 1.6.58 of praisonaiagents.
AI Analysis
Technical Summary
PraisonAI's workflow "include" feature in versions 3.9.26 through 4.6.57 and praisonaiagents 0.12.12 through 1.6.57 is vulnerable to arbitrary code execution due to improper control of code generation (CWE-94). The method Workflow._execute_include() imports and executes an included recipe's tools.py file using importlib.util.spec_from_file_location() and spec.loader.exec_module() without enforcing the PRAISONAI_ALLOW_TEMPLATE_TOOLS or PRAISONAI_ALLOW_LOCAL_TOOLS opt-in gates or routing through the centralized safe loader. This allows an attacker who can cause a victim process to run a workflow including an attacker-controlled local recipe directory to execute arbitrary Python code as the PraisonAI process user. This vulnerability bypasses previous hardening measures related to automatic tools.py RCE. The vulnerability is addressed in praisonai version 4.6.58 and praisonaiagents version 1.6.58.
Potential Impact
Successful exploitation allows arbitrary Python code execution with the privileges of the PraisonAI process user. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability bypasses existing hardening mechanisms, increasing the risk of exploitation. However, exploitation requires the attacker to cause a victim to run a workflow or recipe that includes an untrusted local recipe directory.
Mitigation Recommendations
A fix is available in praisonai version 4.6.58 and praisonaiagents version 1.6.58. Users should upgrade to these versions or later to remediate this vulnerability. No other mitigation guidance is provided or required beyond applying the official fix.
CVE-2026-55522: CWE-94: Improper Control of Generation of Code ('Code Injection') in MervinPraison PraisonAI
Description
CVE-2026-55522 is a high-severity code injection vulnerability in MervinPraison PraisonAI affecting versions 3.9.26 through 4.6.57 and praisonaiagents 0.12.12 through 1.6.57. The flaw arises from the workflow "include" feature which executes an included recipe's tools.py file without proper safety checks, allowing arbitrary Python code execution. This occurs because the import mechanism bypasses configured autoload gates and safe loaders. The vulnerability enables an attacker who can induce a victim to run a crafted workflow or recipe to execute arbitrary code with the privileges of the PraisonAI process user. The issue has been fixed in versions 4.6.58 of praisonai and 1.6.58 of praisonaiagents.
CVSS v3.1
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI's workflow "include" feature in versions 3.9.26 through 4.6.57 and praisonaiagents 0.12.12 through 1.6.57 is vulnerable to arbitrary code execution due to improper control of code generation (CWE-94). The method Workflow._execute_include() imports and executes an included recipe's tools.py file using importlib.util.spec_from_file_location() and spec.loader.exec_module() without enforcing the PRAISONAI_ALLOW_TEMPLATE_TOOLS or PRAISONAI_ALLOW_LOCAL_TOOLS opt-in gates or routing through the centralized safe loader. This allows an attacker who can cause a victim process to run a workflow including an attacker-controlled local recipe directory to execute arbitrary Python code as the PraisonAI process user. This vulnerability bypasses previous hardening measures related to automatic tools.py RCE. The vulnerability is addressed in praisonai version 4.6.58 and praisonaiagents version 1.6.58.
Potential Impact
Successful exploitation allows arbitrary Python code execution with the privileges of the PraisonAI process user. This can lead to full compromise of the affected system, including confidentiality, integrity, and availability impacts. The vulnerability bypasses existing hardening mechanisms, increasing the risk of exploitation. However, exploitation requires the attacker to cause a victim to run a workflow or recipe that includes an untrusted local recipe directory.
Mitigation Recommendations
A fix is available in praisonai version 4.6.58 and praisonaiagents version 1.6.58. Users should upgrade to these versions or later to remediate this vulnerability. No other mitigation guidance is provided or required beyond applying the official fix.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-16T22:44:22.284Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a739210bf8831d5395f9a96
Added to database: 08/05/2026, 19:42:08 UTC
Last enriched: 08/05/2026, 19:56:29 UTC
Last updated: 08/05/2026, 20:23:05 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.