Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-5826: vanna-ai/vanna remote code execution through prompt injection in vanna.ask

Identifier
CVE-2024-5826
Published
Record updated
View JSON
Affected
  • vanna <= 0.6.2
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.9%

Summary

CVE-2024-5826 affects the latest version of vanna-ai/vanna. The vanna.ask function lacks a sandbox when executing LLM-generated code, so a prompt injection can alter the code run by the exec function in src/vanna/base/base.py. An attacker can use this to achieve remote code execution on the app backend server and potentially gain full control of it. The weakness is classified as CWE-94, Improper Control of Generation of Code ('Code Injection').

Mitigation

The source does not state a fix yet. Check the original advisory for updates.