Skip to main content
← All vulnerabilities
CVE-2024-5753PYSEC-2026-2002GHSA-MWXM-35F8-6VG2

Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna

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

Summary

vanna-ai/vanna version v0.3.4 is vulnerable to SQL injection in some file-critical functions such as `pg_read_file()`. This vulnerability allows unauthenticated remote users to read arbitrary local files on the victim server, including sensitive files like `/etc/passwd`, by exploiting the exposed SQL queries via a Python Flask API.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: partial

  3. Record last updated

Affected versions

  • vanna-ai vanna-ai/vanna

    Version range not reported

  • vannaPyPI

    through 0.3.4

References 1

huntr.com