AI and data stack advisories

Severe, 6 weeks1496Projects326

1496 severe, 6 weeks · 326 projects

VannaGHSA-rrqq-fv6m-692m

vanna vulnerable to remote code execution caused by prompt injection

Vanna

CVE-2024-5826 · Published Jun 27, 2024 · updated Jun 29, 2026

Critical9.8
No fix yet
GitHub advisory

In the latest version of vanna-ai/vanna, the vanna.ask function is vulnerable to remote code execution due to prompt injection. The root cause is the lack of a sandbox when executing LLM-generated code, allowing an attacker to manipulate the code executed by the exec function in src/vanna/base/base.py. This vulnerability can be exploited by an attacker to achieve remote code execution on the app backend server, potentially gaining full control of the server.

Affected versions

PackageAffectedFixed in
vanna
PyPI
<= 0.6.2No fix yet
Details and references
CVSS 3.0
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity from
GitHub (reviewed advisory)
Weakness
CWE-94
Also known as
CVE-2024-5826, PYSEC-2026-562

More Vanna advisories

All Vanna