CVE-2026-40288: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MervinPraison PraisonAI
CVE-2026-40288 is a critical OS command injection vulnerability in MervinPraison's PraisonAI multi-agent teams system. Versions prior to 4. 5. 139 of PraisonAI and 1. 5. 140 of praisonaiagents improperly handle untrusted YAML workflow files, allowing arbitrary command and code execution without validation or sandboxing. This occurs because the workflow engine executes shell commands and Python scripts directly from YAML files, exposing the host system to full compromise if an attacker can supply or influence these files. The vulnerability is fixed in versions 4. 5. 139 and 1.
AI Analysis
Technical Summary
PraisonAI's workflow engine in versions below 4.5.139 and praisonaiagents below 1.5.140 processes YAML files with type: job that include steps executing shell commands (via subprocess.run()), inline Python code (via exec()), and arbitrary Python scripts without any input validation, sandboxing, or user confirmation. The vulnerable code paths include action_run() in workflow.py and _exec_shell(), _exec_inline_python(), and _exec_python_script() in job_workflow.py. An attacker able to supply or influence such YAML files—common in CI pipelines, shared repositories, or multi-tenant environments—can achieve arbitrary code execution on the host system, leading to full system compromise and access to sensitive data or credentials. The issue has been addressed in PraisonAI 4.5.139 and praisonaiagents 1.5.140.
Potential Impact
Successful exploitation allows an unauthenticated attacker who can supply or influence workflow YAML files to execute arbitrary OS commands and Python code on the host system. This leads to full compromise of the affected machine, including confidentiality, integrity, and availability impacts. The attacker can access sensitive data, credentials, and potentially pivot within the environment. The vulnerability has a CVSS 3.1 score of 9.8 (critical).
Mitigation Recommendations
A fix is available in PraisonAI version 4.5.139 and praisonaiagents version 1.5.140. Users should upgrade to these or later versions to remediate this vulnerability. Until patched, avoid running untrusted or unauthenticated YAML workflow files, especially in CI pipelines, shared repositories, or multi-tenant deployments. Patch status is confirmed by the vendor advisory stating the issue is fixed in these versions.
CVE-2026-40288: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MervinPraison PraisonAI
Description
CVE-2026-40288 is a critical OS command injection vulnerability in MervinPraison's PraisonAI multi-agent teams system. Versions prior to 4. 5. 139 of PraisonAI and 1. 5. 140 of praisonaiagents improperly handle untrusted YAML workflow files, allowing arbitrary command and code execution without validation or sandboxing. This occurs because the workflow engine executes shell commands and Python scripts directly from YAML files, exposing the host system to full compromise if an attacker can supply or influence these files. The vulnerability is fixed in versions 4. 5. 139 and 1.
CVSS v3.1
Score 9.8critical
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
PraisonAI's workflow engine in versions below 4.5.139 and praisonaiagents below 1.5.140 processes YAML files with type: job that include steps executing shell commands (via subprocess.run()), inline Python code (via exec()), and arbitrary Python scripts without any input validation, sandboxing, or user confirmation. The vulnerable code paths include action_run() in workflow.py and _exec_shell(), _exec_inline_python(), and _exec_python_script() in job_workflow.py. An attacker able to supply or influence such YAML files—common in CI pipelines, shared repositories, or multi-tenant environments—can achieve arbitrary code execution on the host system, leading to full system compromise and access to sensitive data or credentials. The issue has been addressed in PraisonAI 4.5.139 and praisonaiagents 1.5.140.
Potential Impact
Successful exploitation allows an unauthenticated attacker who can supply or influence workflow YAML files to execute arbitrary OS commands and Python code on the host system. This leads to full compromise of the affected machine, including confidentiality, integrity, and availability impacts. The attacker can access sensitive data, credentials, and potentially pivot within the environment. The vulnerability has a CVSS 3.1 score of 9.8 (critical).
Mitigation Recommendations
A fix is available in PraisonAI version 4.5.139 and praisonaiagents version 1.5.140. Users should upgrade to these or later versions to remediate this vulnerability. Until patched, avoid running untrusted or unauthenticated YAML workflow files, especially in CI pipelines, shared repositories, or multi-tenant deployments. Patch status is confirmed by the vendor advisory stating the issue is fixed in these versions.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-04-10T20:22:44.035Z
- Cvss Version
- 3.1
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69ddbc3182d89c981fc24dcf
Added to database: 4/14/2026, 4:01:53 AM
Last enriched: 4/21/2026, 6:18:31 AM
Last updated: 5/26/2026, 8:52:11 PM
Views: 70
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.