Skip to content
OpenAdvisories
High · 7.5 CVE-2024-5753 EUVD-2024-2388GHSA-mwxm-35f8-6vg2PYSEC-2026-2002

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

Published Jul 5, 2024 · Updated Oct 15, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
vanna-ai vanna-ai/vanna unspecified – ≤ latest —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI vanna <= 0.3.4 — GHSA-mwxm-35f8-6vg2

References