CVE-2024-5753 HIGH

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

Vendor Vanna-Ai
Product vanna-ai/vanna
Weakness CWE-89 · SQLi
Published July 5, 2024
Last update October 15, 2025

CVSS base score

7.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Confidentiality High
Integrity None

CVSS vector

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

July 5, 2024 CVE published
October 15, 2025 Record updated