CVE-2024-58339

HIGH

LlamaIndex <= 0.12.2 - Unauthenticated Denial of Service via VannaQueryEngine SQL Execution

Title source: llm
STIX 2.1

Description

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

References (4)

Core 4
Core References
Exploit, Third Party Advisory technical-description exploit
https://huntr.com/bounties/a1d6c30d-fce0-412a-bd22-14e0d4c1fa1f
Product product
https://www.llamaindex.ai/
Product third-party-advisory
https://github.com/run-llama/llama_index

Scores

CVSS v3 7.5
EPSS 0.0057
EPSS Percentile 42.5%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact partial

Details

CWE
CWE-770
Status published
Products (1)
llamaindex/llamaindex < 0.12.2
Published Jan 12, 2026
Tracked Since Feb 18, 2026