CVE-2024-5753
JSON

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 packageVersionsReported by
vanna-ai vanna-ai/vannafrom unspecified up to latestCVE List
vanna-ai vanna0.3.4CVE List
vanna (PyPI)up to 0.3.4GitHub Advisory Database, PyPA Advisory Database

All scores

@huntr_ai7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHubhigh CVSS:4.0CVSS: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 Database7.5high CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
PyPA Advisory DatabaseNot scored CVSS:4.0CVSS: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

CWE-89CWE-200

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

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

SourceRecordLicence
CVE ListCVE-2024-5753 changed 2025-10-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-mwxm-35f8-6vg2 changed 2026-07-07CC-BY-4.0
NVDCVE-2024-5753 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-2002 changed 2026-07-07CC-BY-4.0