ZeroHour

CVE-2026-57136

niche

Shell Command Injection in PraisonAI Sandbox Executor (v1.2.3–1.7.1)

CVSS 3.1
8.8 high
EPSS
Published
()
Modified
AI analysis

In PraisonAI versions 1.2.3 through 1.7.1, the CommandValidator in the TypeScript CLI's sandbox-executor feature checks only the first whitespace-delimited token of a command against the allowedCommands allowlist, while SandboxExecutor passes the complete command string to sh -c. An attacker with limited access to submit commands to the system can begin the string with an allowlisted executable and then append a non-allowlisted command via shell metacharacters, bypassing the sandbox restriction. Successful exploitation results in arbitrary operating-system command execution with the full privileges of the PraisonAI process, impacting confidentiality, integrity, and availability (CVSS 3.1: 8.8, network vector, low privileges required, no user interaction). Anyone using the PraisonAI CLI sandbox-executor on an affected version is impacted; the issue is fixed in version 1.7.2. No public proof of concept is known, the flaw is not on the CISA KEV list, and there is no evidence of in-the-wild exploitation to date.

What to do: Upgrade PraisonAI to version 1.7.2 or later as soon as possible. Audit command logs and history for sandboxed commands where an allowed executable is followed by shell metacharacters (e.g., command chaining or substitution), which would indicate attempted or successful injection. As defense-in-depth, run the PraisonAI process under a least-privileged account and restrict which users, agents, or tool pipelines can submit commands to the sandbox-executor.

Affected
PraisonAI (praisonai-ts CLI sandbox-executor)>= 1.2.3, < 1.7.2
Estimated exposure
nichelikely on the order of a few thousand developer installations (roughly 10^3, clearly an estimate) — PraisonAI is a niche open-source multi-agent framework distributed via pip/npm with no published active-install telemetry, and it typically runs on developer machines or private infrastructure rather than as an internet-exposed service, so…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

PraisonAI is a multi-agent teams system. From 1.2.3 until 1.7.2, CommandValidator in src/praisonai-ts/src/cli/features/sandbox-executor.ts validates only the first whitespace-delimited executable against allowedCommands, then SandboxExecutor passes the complete command string to sh -c. A command beginning with an allowed executable can append a non-allowlisted command through shell metacharacters, causing arbitrary commands to run with the PraisonAI process privileges. This issue is fixed in version 1.7.2.

Weakness
CWE-78, CWE-693, CWE-863
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

In the news

No ingested article mentions this CVE yet.