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

- Severity: High 7.5 (CVSS:3.0, scored by @huntr_ai) `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Published: 2024-07-05T19:27:22.046Z
- Modified: 2026-07-07T17:56:43.326Z
- Also known as: GHSA-mwxm-35f8-6vg2, PYSEC-2026-2002
- Weaknesses: CWE-89, CWE-200
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: @huntr_ai

## 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.

(As written by CVE List.)

## Affected

- vanna-ai vanna-ai/vanna: from unspecified up to latest
- vanna-ai vanna: 0.3.4
- vanna (PyPI): up to 0.3.4

## Every score

- @huntr_ai: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 High `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: CVSS:3.0 7.5 High `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- PyPA Advisory Database: 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`

## References

- <https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-5753> (advisory)
- <https://github.com/vanna-ai/vanna> (package)
- <https://pypi.org/project/vanna> (package)
- <https://github.com/advisories/GHSA-mwxm-35f8-6vg2> (advisory)

## Sources

- CVE List: [CVE-2024-5753](https://www.cve.org/CVERecord?id=CVE-2024-5753), CVE Terms of Use, modified 2025-10-15
- GitHub Advisory Database: [GHSA-mwxm-35f8-6vg2](https://github.com/advisories/GHSA-mwxm-35f8-6vg2), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-5753](https://nvd.nist.gov/vuln/detail/CVE-2024-5753), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-2002](https://osv.dev/vulnerability/PYSEC-2026-2002), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-5753 · Whole record: https://cve.day/CVE-2024-5753.json · Rebuilt by cve.day 2026-11-25T22:58:42.538Z
