RCE in Vanna-Ai Vanna-Ai/vanna
CVE-2024-5826
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.
Vulnerability class: RCE (Remote Code Execution)
EPSS: 0.009 (55.3th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Vanna-ai Vanna-ai/vanna — versions unspecified
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2024-5826?
- CVE-2024-5826 is a critical-severity vulnerability in Vanna-Ai Vanna-Ai/vanna, classified under Code Injection. CVSS score: 9.8/10. Published 2024-06-27.
- How severe is CVE-2024-5826?
- Critical severity. CVSS v3 base score is 9.8 out of 10.