7.5high
Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna
- Severity
- 7.5high CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 1.01% (higher than 62% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-mwxm-35f8-6vg2PYSEC-2026-2002
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
| Product or package | Versions | Reported by |
|---|---|---|
| vanna-ai vanna-ai/vanna | from unspecified up to latest | CVE List |
| vanna-ai vanna | 0.3.4 | CVE List |
| vanna (PyPI) | up to 0.3.4 | GitHub Advisory Database, PyPA Advisory Database |
All scores
| @huntr_ai | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
| PyPA Advisory Database | 7.5high CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| PyPA Advisory Database | Not scored CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N |
Classification
What each source says
CVE List
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.
NVD (es)
La versión v0.3.4 de vanna-ai/vanna es vulnerable a la inyección de SQL en algunas funciones críticas de archivos como `pg_read_file()`. Esta vulnerabilidad permite a usuarios remotos no autenticados leer archivos locales arbitrarios en el servidor víctima, incluidos archivos confidenciales como `/etc/passwd`, explotando las consultas SQL expuestas a través de una API Python Flask.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-5753 changed 2025-10-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mwxm-35f8-6vg2 changed 2026-07-07 | CC-BY-4.0 |
| NVD | CVE-2024-5753 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-2002 changed 2026-07-07 | CC-BY-4.0 |