Incident report
Visualization Prompt Injection Escalating to Python Code Execution
Public CVE advisory reporting prompt injection in a data-visualization helper that could steer generated plotting code to execute arbitrary host Python commands.
Incident record
- Reported
- Severity
- High
- Vector
- Indirect Prompt Injection
- Affected system type
- Text-to-SQL & Automated Chart Generation Libraries
- Reference
CVE-2024-5565- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2024-5565
Defensive lesson
Render charts declaratively using structured JSON specifications (such as Vega-Lite or ECharts configs) instead of executing model-generated Python code.
Referenced techniques
- LLM Prompt Injection AML.T0051
- AI Agent Tool Invocation AML.T0053