Description
PraisonAI before 4.5.128 contains an arbitrary shell command execution vulnerability where the UI modules hardcode approval_mode to auto, overriding administrator configuration from PRAISON_APPROVAL_MODE environment variable. Authenticated attackers can instruct the LLM agent to execute arbitrary shell commands via subprocess.run with shell=True, bypassing the manual approval gate and insufficient command sanitization blocklists.
Problem types
Product status
Any version before 4.5.128
4.5.128 (semver)
Credits
offset
References
github.com/...isonAI/security/advisories/GHSA-qwgj-rrpj-75xm (GHSA Advisory GHSA-qwgj-rrpj-75xm)
www.vulncheck.com/...on-via-hardcoded-approval-mode-override (VulnCheck Advisory: PraisonAI - Arbitrary Shell Command Execution via Hardcoded Approval Mode Override)