Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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

0
High
VulnerabilityCVE-2024-5753cvecve-2024-5753cwe-89
Published: Fri Jul 05 2024 (07/05/2024, 19:27:22 UTC)
Source: CVE Database V5
Vendor/Project: vanna-ai
Product: vanna-ai/vanna

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.

AI-Powered Analysis

AILast updated: 10/15/2025, 13:44:08 UTC

Technical Analysis

CVE-2024-5753 is an SQL injection vulnerability classified under CWE-89 affecting vanna-ai/vanna version 0.3.4. The vulnerability exists in file-critical functions such as pg_read_file(), which are accessible through a Python Flask API endpoint. Due to improper neutralization of special characters in SQL commands, unauthenticated remote attackers can inject malicious SQL queries that manipulate the database to read arbitrary local files on the server. This includes highly sensitive system files like /etc/passwd, which can disclose user account information and potentially facilitate further attacks. The vulnerability does not require any authentication or user interaction, increasing its risk profile. The CVSS v3.0 score of 7.5 reflects a high severity, emphasizing the critical confidentiality impact while integrity and availability remain unaffected. No patches are currently listed, and no known exploits have been reported in the wild, but the vulnerability's nature makes it a prime target for attackers seeking to exfiltrate sensitive data. The exposure through a Flask API suggests that the attack surface includes any publicly accessible endpoints that invoke vulnerable SQL queries without proper sanitization or parameterization. This vulnerability highlights the importance of secure coding practices, especially in AI-related software that may handle sensitive data and system-level operations.

Potential Impact

The primary impact of CVE-2024-5753 is the unauthorized disclosure of sensitive local files on affected servers, compromising confidentiality. For European organizations, this can lead to exposure of critical system information and potentially sensitive user data, increasing the risk of identity theft, privilege escalation, and further network compromise. The breach of files like /etc/passwd can facilitate lateral movement and privilege escalation within the network. Additionally, organizations subject to GDPR and other data protection regulations may face legal and financial penalties due to inadequate protection of personal data. The vulnerability's exploitation could undermine trust in AI and data analytics platforms, impacting business continuity and reputation. Since the vulnerability is exploitable remotely without authentication, it poses a significant threat to any exposed instances of vanna-ai/vanna, especially those integrated into critical infrastructure or handling sensitive datasets. The lack of current known exploits provides a window for proactive defense, but the high severity score necessitates urgent attention.

Mitigation Recommendations

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.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
@huntr_ai
Date Reserved
2024-06-07T16:34:29.184Z
Cvss Version
3.0
State
PUBLISHED

Threat ID: 68ef9b28178f764e1f470cae

Added to database: 10/15/2025, 1:01:28 PM

Last enriched: 10/15/2025, 1:44:08 PM

Last updated: 10/16/2025, 12:42:21 PM

Views: 1

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats