Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.1%top 66%

CVE-2026-40288: CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') in MervinPraison PraisonAI

0
Critical
VulnerabilityCVE-2026-40288cvecve-2026-40288cwe-78cwe-94
Published: Tue Apr 14 2026 (04/14/2026, 03:00:21 UTC)
Source: CVE Database V5
Vendor/Project: MervinPraison
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/21/2026, 06:18:31 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses