{"id":"CVE-2024-5753","aliases":["CVE-2024-5753","GHSA-mwxm-35f8-6vg2","PYSEC-2026-2002"],"related":[],"kind":"vulnerability","state":"published","title":"Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2024-07-05T19:27:22.046Z","modified":"2026-07-07T17:56:43.326Z","severity":{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"@huntr_ai","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","score":7.5,"rating":"HIGH"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-89","CWE-200"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"latest","status":"affected"}],"vendor":"vanna-ai","product":"vanna-ai/vanna","source":"cvelist"},{"ranges":[{"version":"0.3.4","status":"affected"}],"vendor":"vanna-ai","product":"vanna","cpe":"cpe:2.3:a:vanna-ai:vanna:0.3.4:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.4"}],"ecosystem":"PyPI","package":"vanna","purl":"pkg:pypi/vanna","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"0.3.4"}],"ecosystem":"PyPI","package":"vanna","purl":"pkg:pypi/vanna","source":"pysec"}],"references":[{"url":"https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca","tags":["web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5753","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/vanna-ai/vanna","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/vanna","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-mwxm-35f8-6vg2","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"@huntr_ai","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-07-08T14:07:30.894Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5753","url":"https://www.cve.org/CVERecord?id=CVE-2024-5753","licence":"CVE Terms of Use","modified":"2025-10-15T12:50:29.242Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mwxm-35f8-6vg2","url":"https://github.com/advisories/GHSA-mwxm-35f8-6vg2","licence":"CC-BY-4.0","modified":"2026-07-07T17:56:43.326Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5753","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5753","licence":"Public domain","modified":"2026-06-17T08:16:35.747Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-2002","url":"https://osv.dev/vulnerability/PYSEC-2026-2002","licence":"CC-BY-4.0","modified":"2026-07-07T17:47:54.152Z"}],"updatedAt":"2026-11-25T22:58:42.538Z","epss":{"score":0.00604,"percentile":0.50252,"date":"2026-12-01T12:00:22.000Z"}}