Command Injection Vulnerability in PraisonAIAgents by Mervin Praison
CVE-2026-40111
What is CVE-2026-40111?
PraisonAIAgents, a system designed for multi-agent teams, is susceptible to a command injection vulnerability where user-controlled command strings are improperly handled. In versions prior to 1.5.128, the application directly passes these strings to subprocess.run() with shell=True, lacking necessary sanitization. This allows attackers to exploit two key surfaces: through hook event types such as pre_run_command and post_run_command, and significantly through the lifecycle configuration file .praisonai/hooks.json. By gaining file-write access via prompt injection, an attacker can manipulate this file to execute arbitrary code silently during lifecycle events, without requiring further user intervention. The issue is addressed in version 1.5.128.
Affected Version(s)
PraisonAIAgents < 1.5.128
