Vulnerabilities · 2024 · Llamaindex
CVE-2024-58339
Llamaindex vulnerability
LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation. The custom_query() logic generates SQL statements from a user-supplied prompt and executes them via vn.run_sql() without enforcing query execution limits In downstream deployments where untrusted users can supply prompts, an attacker can trigger expensive or unbounded SQL operations that exhaust CPU or memory resources, resulting in a denial-of-service condition. The vulnerable execution path occurs in llama_index/packs/vanna/base.py within custom_query().
Affected products
Llamaindex. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Llamaindex runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- huntr.com/bounties/a1d6c30d-fce0-412a-bd22-14e0d4c1fa1f · Exploit
- www.vulncheck.com/advisories/llamaindex-vannaqueryengine-sql-execution-allows-resource-exh · Third Party Advisory
- github.com/run-llama/llama_index
- www.llamaindex.ai/
- nvd.nist.gov/vuln/detail/CVE-2024-58339
- cve.org/CVERecord?id=CVE-2024-58339
More vulnerabilities in Llamaindex products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.