CVE-2024-5826
published critical CVSS 3.0 · 9.8Remote Code Execution via Prompt Injection in vanna-ai/vanna
Package status and fixes
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| vanna-ai | vanna-ai/vanna | unspecified through latest (affected · custom) | @huntr_ai · cna |
| vanna-ai | vanna | 0 (affected)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-94 CWE-94 Improper Control of Generation of Code
References
1Provider assertions
3@huntr_ai · cna
Remote Code Execution via Prompt Injection in vanna-ai/vanna
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 602f7e062a42662ee354180cfc5dfca53598616361e696e285d26f9f75dc06fd
- Ingested
- 23 Sep 2026, 08:32:47 UTC
- Source record
- Official CVE record