Skip to content
CriticalVulnerabilityLLM-specific

GHSA-q9p7-wqxg-mrhc: Langroid: Sandbox Escape to Remote Code Execution via Incomplete `eval()` Mitigation in TableChatAgent

Published
Record updated
View JSON
Affected
  • langroid <= 0.65.1
Fixed in
0.65.2
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

Langroid's TableChatAgent and VectorStore evaluate LLM-generated tool messages with eval() when full_eval=True, passing an empty dictionary as locals. Because __builtins__ is not removed from the globals mapping, expressions such as __import__('os').system(...) execute, allowing a prompt-injected attacker to achieve unauthenticated remote code execution on the host. The flaw is located in /langroid/agent/special/table_chat_agent.py around line 239 and /langroid/vector_store/base.py around line 225.

Mitigation

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