CVE-2026-34937 PUBLISHED

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

Assigner: GitHub_M
Reserved: 31.03.2026 Published: 03.04.2026 Updated: 03.04.2026

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 "" 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.

Metrics

CVSS Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS Score: 7.8

Product Status

Vendor MervinPraison
Product PraisonAI
Versions
  • Version < 1.5.90 is affected

References

Problem Types

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') CWE