Browse / AI Framework and Platform Flaws / CVE-2024-5753
Vanna vulnerable to SQL Injection
- Class
- AI Framework and Platform Flaws (filed by a model that read the advisory)
- Technique
- Path traversal and file access
- Affected
- vanna (PyPI)
- CVSS
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS
- 0.6% chance of exploitation in 30 days
How it works, in short
Unauthenticated requests reach SQL built from user input in the Flask API, letting an attacker call file-reading database functions to read local files. (Our summary, written by a model. The source text is below.)
Details
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
- https://nvd.nist.gov/vuln/detail/CVE-2024-5753
- https://github.com/vanna-ai/vanna
- https://huntr.com/bounties/a3f913d6-c717-4528-b974-26d8d9e839ca
Source: GitHub Advisory Database, used under CC BY 4.0.