CVE-2024-5826
CRITICAL 9.8CVSS 3.0vanna vulnerable to remote code execution caused by prompt injection
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.
- Published
- 27 Jun 2024
- Last modified
- 1 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Deferred
- Weakness
- CWE-94
- Also known as
- GHSA-rrqq-fv6m-692mPYSEC-2026-562
- Sources
- NVDJSONOSV GHSA-rrqq-fv6m-692mJSONOSV PYSEC-2026-562JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | vanna | <= 0.6.2 |
References
- https://huntr.com/bounties/90620087-44ac-4e43-b659-3c5d30889369 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-5826 · ADVISORY
- https://github.com/vanna-ai/vanna · PACKAGE
- https://pypi.org/project/vanna · PACKAGE
- https://github.com/advisories/GHSA-rrqq-fv6m-692m · ADVISORY
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 27 Jun 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 27 Jun 2024)