Skip to content
OpenAdvisories
High · 7.8 CVE-2026-34937 EUVD-2026-18917GHSA-w37c-qqfp-c67fPYSEC-2026-2954

PraisonAI: Shell Injection in run_python() via Unescaped $() Substitution

Published Apr 3, 2026 · Updated Apr 6, 2026 · Assigned by GitHub_M

Description

PraisonAI is a multi-agent teams system. Prior to version 1.5.90, run_python() in praisonai constructs a shell command string by interpolating user-controlled code into python3 -c "<code>" and passing it to subprocess.run(..., shell=True). The escaping logic only handles \ and ", leaving $() and backtick substitutions unescaped, allowing arbitrary OS command execution before Python is invoked. This issue has been patched in version 1.5.90.

Affected products

VendorProductAffectedFixed
MervinPraison PraisonAI < 1.5.90 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI praisonaiagents < 1.5.90 1.5.90 GHSA-w37c-qqfp-c67f

References