Skip to content
MediumVulnerability

GHSA-ffp3-3562-8cv3: PraisonAI: Coarse-Grained Tool Approval Cache Bypasses Per-Invocation Consent for Shell Commands

Published
Record updated
View JSON
Affected
  • praisonaiagents < 4.5.128
Fixed in
4.5.128

Summary

PraisonAI Agents caches tool approval by tool name only, so approving one `execute_command` call (for example `ls -la`) silently approves every later `execute_command` call in the same execution context. Because `shell_tools.py` passes the full process environment to subprocesses through `os.environ.copy()`, an agent, possibly via prompt injection, can read secrets such as `OPENAI_API_KEY` without a further consent prompt.

Mitigation

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