Skip to main content
CVE-2024-5753VulnerabilityPublished Updated

CVE-2024-5753: vanna-ai/vanna · Improper Neutralization of Special Elements used in an SQL Command

Affects vanna-ai/vannaSource CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.0 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 5 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
GitHubvanna-ai/vannapkg:github/vanna-ai/vannaOther threatsAffected
  • =0.3.4
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

1. Immediately restrict access to the vulnerable Flask API endpoints by implementing network-level controls such as IP whitelisting or VPN access to limit exposure. 2. Employ Web Application Firewalls (WAFs) with custom rules to detect and block SQL injection attempts targeting the pg_read_file() function or similar endpoints. 3. 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. 4. Monitor logs for unusual query patterns or repeated access attempts to sensitive API functions indicative of exploitation attempts. 5. Engage with the vendor or community to obtain patches or updates addressing this vulnerability and apply them promptly once available. 6. Conduct a thorough security review of all API endpoints and database interaction code to identify and remediate similar injection flaws. 7. Educate development teams on secure coding practices, emphasizing the dangers of SQL injection and the importance of input neutralization. 8. Consider deploying runtime application self-protection (RASP) solutions to detect and block injection attacks in real-time. 9. 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.

References

Community reviews

Loading reviews…