Incident report
RAG Framework Safe-Eval Helper Bypass Leading to Command Injection
Public CVE advisory detailing a bypass of a framework's safe_eval wrapper that allowed crafted LLM outputs to trigger arbitrary Python code execution.
Incident record
- Reported
- Severity
- Critical
- Vector
- Tool/MCP Abuse
- Affected system type
- Python RAG & Structured Query Orchestrators
- Reference
CVE-2024-3271- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-3271
Defensive lesson
Eliminate Python eval() wrappers on model output entirely; replace expression helpers with strictly typed JSON tool schemas or isolated sandbox runtimes.
Referenced techniques
- AI Agent Tool Invocation AML.T0053
- LLM Jailbreak AML.T0054