Local File Read (LFI) by Prompt Injection via Postgres SQL in vanna-ai/vanna
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection, Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- No fix listed
Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89 and CWE-200.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vanna-ai | vanna-ai/vanna | up to latest | — | No fix listed | CNA |
| — | vanna (PyPI) | up to 0.3.4 | — | No fix listed | GHSA-mwxm-35f8-6vg2 |
- vanna-ai/vanna Vendorvanna-ai Affected up to latest Fixed in — No fix listed CNA
- vanna (PyPI) Vendor— Affected up to 0.3.4 Fixed in — No fix listed GHSA-mwxm-35f8-6vg2
CPE names CISA-ADP · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:vanna-ai:vanna:0.3.4:*:*:*:*:*:*:* | 0.3.4 | — | — |
- cpe:2.3:a:vanna-ai:vanna:0.3.4:*:*:*:*:*:*:* Versions 0.3.4 — ·—
Remediation
No fixed version listed by the sources yet.
Timeline
- 2026-10-02 Threatist record created from CVE-2024-5753
- 2026-10-03 Alias added: GHSA-mwxm-35f8-6vg2
References
More vanna-ai vulnerabilities
- TI-2024-05403 Arbitrary File Write by Prompt Injection via DuckDB SQL in vanna-ai/vanna CVSS 3.0CRITICAL 9.8
- TI-2026-46836 Vanna 2.0.2 Path Traversal via FileSystemConversationStore CVSS 4.0HIGH 8.8
- TI-2024-05402 Remote Code Execution via Prompt Injection in vanna-ai/vanna CVSS 3.0CRITICAL 9.8
- TI-2024-07510 Server-Side Request Forgery (SSRF) in vanna-ai/vanna CVSS 3.0HIGH 8.3
- TI-2024-07469 Local File Read (LFI) by Prompt Injection via SnowFlake SQL in vanna-ai/vanna CVSS 3.0HIGH 7.5
- TI-2026-06105 vanna-ai vanna Legacy Flask API improper authorization CVSS 4.0MEDIUM 6.9
Sources
- CVE-2024-5753 · CVE Program
- CVE-2024-5753 · NVD
- FIRST EPSS
- GHSA-mwxm-35f8-6vg2 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences