Vulnerability · Published Jul 5, 2024 · Assigned by @huntr_ai
CVE-2024-5753Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna
High 7.5
In plain English
A high-severity SQL injection in vanna-ai/vanna from vanna-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities).
Severity (CVSS 3.0)7.5High
Exploit odds (30 days)0.6%top 50.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | vanna | no fix listed | GHSA-mwxm-35f8-6vg2 |
| PyPI | vanna | no fix listed | PYSEC-2026-2002 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| vanna-ai | vanna-ai/vanna | unspecified – through latest |
Weakness: CWE-89 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N