CVE-2024-5826: Vanna-AI - Remote Code Execution
- Cve: CVE-2024-5826
- Name: Vanna-AI - Remote Code Execution
- 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.
- Impact: Attackers can execute arbitrary code on the server, potentially leading to full server compromise.
- Remediation: Implement sandboxing for code execution and validate prompts to prevent injection.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00882
- Epss percentile: 0.60084
- Assignee: [email protected]
- Published at: 2024-06-27T19:15:17Z
- Age in days: 880
- Modified at: 2026-06-17T08:16:43Z
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-5826
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-94 | Improper Control of Generation of Code |
References
| Url | Source | Tags |
|---|---|---|
| https://huntr.com/bounties/90620087-44ac-4e43-b659-3c5d30889369 | nvd |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| vanna-ai:vanna | all versions | no | adp_cpes | /v1/products/vanna-ai/vanna |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| vanna-ai/vanna | package | yes | /v1/repositories/vanna-ai/vanna |
Index
- Repositories: 3
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Exposed hosts: 26
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports