Skip to content
HighVulnerabilityLLM-specific

CVE-2024-58339: LlamaIndex VannaQueryEngine uncontrolled resource consumption in custom_query

Identifier
CVE-2024-58339
Published
Record updated
View JSON
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
0.6%

Summary

LlamaIndex (run-llama/llama_index) versions up to and including 0.12.2 contain an uncontrolled resource consumption vulnerability in the VannaPack VannaQueryEngine implementation, tracked as CVE-2024-58339. The custom_query() function generates SQL from a user-supplied prompt and runs it through vn.run_sql() without enforcing query execution limits, so in deployments where untrusted users can supply prompts, an attacker can trigger expensive or unbounded SQL operations that exhaust CPU or memory and cause a denial-of-service condition.

Mitigation

The source does not state a fix yet. Check the original advisory for updates.