CVE-2024-5826
Last modified
CVE-2024-5826 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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`. EPSS estimates a 0.88% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| vanna-ai | vanna-ai/vanna | <= latest |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2024-5826?
How severe is CVE-2024-5826?
How do I fix CVE-2024-5826?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-58254Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2024-58255EnzoH has an OS command injection vulnerability. Successful …6.7
- CVE-2024-58256EnzoH has an OS command injection vulnerability. Successful …7.8
- CVE-2024-58257EnzoH has an OS command injection vulnerability. Successful …6.7
- CVE-2024-58258SugarCRM before 13.0.4 and 14.x before 14.0.1 allows SSRF in…7.2
- CVE-2024-58259A vulnerability has been identified within Rancher Manager i…8.2
- CVE-2024-58260A vulnerability has been identified within Rancher Manager w…7.6
- CVE-2024-58261The sequoia-openpgp crate 1.13.0 before 1.21.0 for Rust allo…7.5
- CVE-2024-58262The curve25519-dalek crate before 4.1.3 for Rust has a const…5.1
- CVE-2024-58263The cosmwasm-std crate before 2.0.2 for Rust allows integer …5.3
- CVE-2024-58264The serde-json-wasm crate before 1.0.1 for Rust allows stack…7.5
- CVE-2024-58265The snow crate before 0.9.5 for Rust, when stateful Transpor…4.3
Are you affected by CVE-2024-5826?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
