Description
PraisonAI before 4.6.78 contains arbitrary file write and command execution vulnerabilities in the AICoder component due to missing path validation and command sanitization in LLM tool calls. Attackers can inject malicious prompts through the chat interface to write files to arbitrary filesystem locations and execute arbitrary shell commands with root privileges.
Problem types
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Product status
Any version before 4.6.78
4.6.78 (semver)
Credits
anushkavirgaonkar
References
github.com/...isonAI/security/advisories/GHSA-9mp3-24cc-77mg (GitHub Security Advisory (GHSA-9mp3-24cc-77mg))
www.vulncheck.com/...itrary-file-write-and-command-execution (VulnCheck Advisory: PraisonAI before 4.6.78 Arbitrary File Write and Command Execution)