External risk intelligence

PraisonAI Arbitrary Command Execution via Workflow Input

CVE advisorySeverity: CRITICAL (CVSS 9.6)

CVE-2026-40088

PraisonAI is a framework for building multi-agent systems and workflows. While these systems can be integrated into internet-facing applications or APIs, they are also frequently used in internal development environments, local automation pipelines, or as backend components not directly exposed to the public internet. Given the varied deployment patterns for agentic frameworks, public exposure is plausible but not inherent.

OS Command Injection

Praisonai

before 4.5.121

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability has been identified in the PraisonAI system that could allow attackers to execute arbitrary commands. This issue arises from how user-controlled input is handled within agent workflows and shell executions. The main concern is confirming if our environment uses the affected PraisonAI components and if they are exposed in a way that malicious actors could exploit.

  • Allows arbitrary commands through input.
  • Leadership should remember its execution risk.
  • Confirm relevance and exposure to PraisonAI.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by crafting malicious input within agent workflows, YAML definitions, or tool calls. This input, when processed by the system, allows for the injection of arbitrary shell commands, potentially leading to significant compromise of the affected system.

  • Publicly accessible system.
  • Malicious input in agent workflows or tool calls.
  • Arbitrary shell command execution.

Live Threat

Current exploitation, exposure, and threat context

When supported by the advisory, an attacker could inject arbitrary shell commands through agent workflows, YAML definitions, or LLM-generated tool calls, potentially affecting the system's execution behavior.

  • Arbitrary shell commands could be executed.
  • User input could be manipulated.
  • Compromised service behavior may occur.

Operational Fix

Recommended remediation, mitigation, and detection steps

This vulnerability in PraisonAI, affecting command execution through agent workflows, YAML, and LLM-generated tool calls, likely impacts platform or application teams responsible for its deployment and integration. The immediate first step is to identify all instances of the affected technology, assess their exposure and business criticality, and then engage the accountable owners to plan remediation.

  • Platform or application teams own this.
  • Verify system reachability and criticality.
  • Plan remediation based on risk.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is PraisonAI?

PraisonAI is a framework designed to build and manage multi-agent systems. It allows developers to orchestrate workflows where autonomous agents collaborate to perform tasks. These agents often utilize YAML configurations and LLM-generated instructions to automate complex processes, serving as a foundational layer for building AI-driven automation pipelines.

What does CWE-78 mean for CVE-2026-40088?

CWE-78, or OS Command Injection, occurs when an application passes unsafe user-supplied data to a system shell. In CVE-2026-40088, the PraisonAI execute_command function fails to sanitize inputs from workflows or tool calls, allowing an attacker to append their own shell metacharacters and execute unauthorized commands directly on the host operating system.

How can an attacker trigger this command injection?

An attacker triggers the vulnerability by supplying malicious input that gets processed by the system's workflow or tool execution logic. This includes manipulating YAML definitions or LLM tool calls. Critically, simply having the software installed is not enough; the bug is only triggered when the system parses and executes input containing dangerous shell metacharacters from these sources.

Is my PraisonAI instance at risk if it is internal?

Halo Surface Signal notes that while PraisonAI is often used in internal development or local pipelines, it can be integrated into internet-facing APIs. If your PraisonAI instance is accessible from the internet, the attack surface is broader. Even in internal environments, the risk remains if untrusted users or external LLM outputs have access to trigger workflow or tool execution.

Do I need to update PraisonAI?

Yes. If you are running any version of PraisonAI prior to 4.5.121, you are affected by this command injection vulnerability. The necessary first step is to upgrade to version 4.5.121 or later, which includes the required sanitization fixes to prevent arbitrary shell command execution through agent workflows and tool calls.

References