Skip to main content
← All vulnerabilities
CVE-2024-5826GHSA-RRQQ-FV6M-692MPYSEC-2026-562

Remote Code Execution via Prompt Injection in vanna-ai/vanna

Published
Last modified
published
Not listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • vanna-ai vanna-ai/vanna

    Version range not reported

  • vannaPyPI

    through 0.6.2

References 1

huntr.com