Skip to content
CriticalVulnerabilityLLM-specific

GHSA-9mp3-24cc-77mg: PraisonAI: AICoder Arbitrary File Write and Command Execution via LLM Tool Calls

Published
Record updated
View JSON
Affected
  • praisonai <= 4.6.77
Fixed in
4.6.78
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

The AICoder UI component in PraisonAI exposes write_to_file and execute_command tools to the LLM without path validation or command sanitization. Through prompt injection in the chat interface, an attacker can write to arbitrary filesystem locations, such as /root/.ssh/authorized_keys or /etc/crontab, and execute arbitrary shell commands. Docker containers run as root, which increases the impact.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.