CVE-2024-5826: vanna vulnerable to remote code execution caused by prompt injection
9.8
CVSS Score
3.0
Basic Information
CVE ID
GHSA ID
EPSS Score
0.79667%
CWE
Published
6/27/2024
Updated
6/28/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| vanna | pip | <= 0.6.2 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability report explicitly identifies the vanna.ask function as the entry point for prompt injection attacks. This function processes user input, generates code via an LLM, and executes it using Python's exec function in src/vanna/base/base.py. The lack of a sandbox or restrictions around the exec call allows arbitrary code execution. Since the advisory directly links vanna.ask to the insecure exec usage in the specified file, this function is the clear vulnerability source with high confidence.