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

Inspect in Interactive Incidents Hub

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