{"id":"CVE-2024-5753","published":"2024-07-05T19:27:22Z","modified":"2025-10-15T12:50:29Z","title":"Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna","vendor":"vanna-ai","product":"vanna-ai/vanna","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00604,"percentile":0.49829,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca","tags":[]}],"priority":{"score":15.2,"factors":[{"name":"EPSS percentile","points":9.97},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vanna-ai","affectedVersions":[{"vendor":"vanna-ai","product":"vanna-ai/vanna","versions":[">= unspecified, <= latest"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-08T14:07:30.894942Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"vanna","vulnerableRanges":["<=0.3.4"],"patched":[],"from":["GHSA-mwxm-35f8-6vg2","PYSEC-2026-2002"],"provenance":"source"}],"euvd":{"id":"EUVD-2024-2388","exploited":false,"provenance":"source"}}