CVE-2026-34955

PraisonAI: Sandbox Escape via shell=True and Bypassable Blocklist in SubprocessSandbox

Published Apr 3, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
PraisonAI is a multi-agent teams system. Prior to version 4.5.97, SubprocessSandbox in all modes (BASIC, STRICT, NETWORK_ISOLATED) calls subprocess.run() with shell=True and relies solely on string-pattern matching to block dangerous commands. The blocklist does not include sh or bash as standalone executables, allowing trivial sandbox escape in STRICT mode via sh -c '<command>'. This issue has been patched in version 4.5.97.

Analysis

AI-generated

Technical impact

The SubprocessSandbox component uses subprocess.run(..., shell=True) and relies on a string‑pattern blocklist that excludes sh or bash when invoked as standalone executables. This omission allows an attacker to execute arbitrary host commands such as sh -c '<command>' in STRICT mode. Based on the description, it is inferred that this capability permits the attacker to run any command on the host, potentially compromising confidentiality, integrity, and availability.

Affected Systems

The flaw exists in PraisonAI from MervinPraison. All releases older than version 4.5.97 are vulnerable; the issue is fixed in version 4.5.97 and later.

Risk and Exploitability

The CVSS score of 8.8 indicates a high severity, while an EPSS score of less than 1 % implies that exploitation is currently unlikely on a broad scale. The vulnerability is identified as CWE‑78 (OS Command Injection). The likely attack vector is via an attacker supplying a malicious command string to the sandbox’s subprocess call; this inference comes from the description that the escape can be achieved with sh -c '<command>'. Therefore, the risk is significant if the attacker can influence the sandbox input or has local access to the environment.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade PraisonAI to version 4.5.97 or newer.
  • If unable to upgrade, disable the use of shell=True in SubprocessSandbox.
  • Ensure sh and bash are excluded from any custom blocklists and monitor subprocess activity for suspicious commands.

Generated by OpenCVE AI on April 14, 2026 at 21:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-r4f2-3m54-pp7q PraisonAI Has Sandbox Escape via shell=True and Bypassable Blocklist in SubprocessSandbox
History
Type Values Removed Values Added
First Time appeared Praison
Praison praisonai
CPEs cpe:2.3:a:praison:praisonai:*:*:*:*:*:*:*:*
Vendors & Products Praison
Praison praisonai
Type Values Removed Values Added
First Time appeared Mervinpraison
Mervinpraison praisonai
Vendors & Products Mervinpraison
Mervinpraison praisonai
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description PraisonAI is a multi-agent teams system. Prior to version 4.5.97, SubprocessSandbox in all modes (BASIC, STRICT, NETWORK_ISOLATED) calls subprocess.run() with shell=True and relies solely on string-pattern matching to block dangerous commands. The blocklist does not include sh or bash as standalone executables, allowing trivial sandbox escape in STRICT mode via sh -c '<command>'. This issue has been patched in version 4.5.97.
Title PraisonAI: Sandbox Escape via shell=True and Bypassable Blocklist in SubprocessSandbox
Weaknesses CWE-78
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-78

    Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 6, 2026, 7:06 PM
Reserved
Mar 31, 2026, 5:27 PM
Status
Analyzed
Published
Apr 4, 2026, 12:16 AM
Modified
Jul 24, 2026, 9:10 PM