CVE-2024-58339
LlamaIndex vulnerability analysis and mitigation

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().


SourceNVD

Related LlamaIndex vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2024-58339HIGH8.7
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesJan 12, 2026
CVE-2024-14021HIGH8.4
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesJan 12, 2026
CVE-2025-7707HIGH7.8
  • LlamaIndex logoLlamaIndex
  • llama-index
NoYesOct 13, 2025
CVE-2025-6209HIGH7.5
  • Python logoPython
  • llama-index
NoYesJul 07, 2025
CVE-2025-6211MEDIUM6.5
  • Python logoPython
  • nemo
NoYesJul 10, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management