{"cve":"CVE-2024-5826","nvd":{"published":"2024-06-27T19:15:17.350","modified":"2026-06-17T08:16:43.470","status":"Deferred","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94"],"references":["https://huntr.com/bounties/90620087-44ac-4e43-b659-3c5d30889369","https://huntr.com/bounties/90620087-44ac-4e43-b659-3c5d30889369"],"products":[],"source":"nvd","synced_at":"2026-10-19T21:52:00.836172422+00:00"},"epss":{"cve":"CVE-2024-5826","score":0.00882,"percentile":0.59177,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-rrqq-fv6m-692m","url":"https://osv.dev/vulnerability/GHSA-rrqq-fv6m-692m","summary":"vanna vulnerable to remote code execution caused by prompt injection","modified":"2026-06-29T12:26:37.506344567Z","packages":[{"ecosystem":"PyPI","name":"vanna","purl":"pkg:pypi/vanna","ranges":["<=0.6.2"],"fixed":[]}]},{"id":"PYSEC-2026-562","url":"https://osv.dev/vulnerability/PYSEC-2026-562","summary":"vanna vulnerable to remote code execution caused by prompt injection","modified":"2026-07-01T20:23:10.996611Z","packages":[{"ecosystem":"PyPI","name":"vanna","purl":"pkg:pypi/vanna","ranges":["<=0.6.2"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}