Free AI Safety Workshop — in collaboration with explainx.aiSave your seat
AgentbeamBeta
AI agent vulnerability · Vanna

CVE-2024-5565: Vanna prompt injection code execution

criticalCVSS 4.0 9.2 · 3.1 8.1GHSA-7735-w2jp-gvg6

The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to the library’s “ask” method with "visualize" set to True (default behavior) leads to remote code execution.

Published May 31, 2024 · Updated Nov 25, 2024

Affected packages

vanna

Ecosystem
PyPI
Affected
<= 0.5.5
Fixed in
No patched version yet
Check
pip show vanna

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The Vanna library uses a prompt function to present the user with visualized results, it is possible to alter the prompt using prompt injection and run arbitrary Python code instead of the intended visualization code. Specifically - allowing external input to the library’s “ask” method with "visualize" set to True (default behavior) leads to remote code execution.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Vanna vulnerabilities

All Vanna entries