CVE-2024-5753: vanna-ai/vanna · SQL Injection
Affects vanna-ai/vannaSource CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 29 Oct 2026, 19:04 UTC
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 5 Jul 2024
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHubvanna-ai/vannapkg:github/vanna-ai/vannaOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
- Immediately restrict access to the vulnerable Flask API endpoints by implementing network-level controls such as IP whitelisting or VPN access to limit exposure.
- Employ Web Application Firewalls (WAFs) with custom rules to detect and block SQL injection attempts targeting the pg_read_file() function or similar endpoints.
- Implement rigorous input validation and sanitization on all user-supplied inputs before they reach SQL queries, using parameterized queries or prepared statements to prevent injection.
- Monitor logs for unusual query patterns or repeated access attempts to sensitive API functions indicative of exploitation attempts.
- Engage with the vendor or community to obtain patches or updates addressing this vulnerability and apply them promptly once available.
- Conduct a thorough security review of all API endpoints and database interaction code to identify and remediate similar injection flaws.
- Educate development teams on secure coding practices, emphasizing the dangers of SQL injection and the importance of input neutralization.
- Consider deploying runtime application self-protection (RASP) solutions to detect and block injection attacks in real-time.
- For critical environments, isolate the application servers from direct internet exposure and use reverse proxies with strict access controls.
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.