CVE-2024-5826vanna-ai/vanna
Critical 9.8 No auth needed
Follow: this CVE · vanna-ai · vanna-ai/vanna We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.0
- 9.8
- EPSS
- 1.6% probability of exploitation in 30 days · percentile 77
- Auth required
- No
- Published
- Jun 27, 2024
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for vanna-ai/vanna.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | vanna |
≤ 0.6.2 |
no fixed version | — |
| PyPI | vanna |
≤ 0.6.2 |
no fixed version | — |
Per OSV / GitHub Advisories (GHSA-rrqq-fv6m-692m, PYSEC-2026-562). Check the version in your lockfile before upgrading.
Affected products
- vanna-ai · vanna-ai/vanna
- vanna-ai · vanna
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.