🛡️ CVE-2024-58339 — llama-index
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().
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.
Affected software
CVE-2024-58339 is recorded against 2 packages.
- llama-index (fixed in 0.12.3)
- llamaindex (fixed in 0.12.2)
Timeline and source
Published on 12 January 2026 and last revised on 20 May 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
www.llamaindex.ai (Web)
www.vulncheck.com (Advisory)
github.com (Package)
huntr.com (Evidence)
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| llama-index | — | 0.12.3 |
| llamaindex | — | 0.12.2 |
References
Similar Threats
- High CVE-2024-14021
- Medium CVE-2025-3044
- High CVE-2025-3046
- High CVE-2025-3225
- Medium CVE-2025-5472
More CVE 2024 advisories
Browse all of CVE 2024 in the advisory index.
Site Security Check
Is llama-index part of your stack?
CVE-2024-58339 is rated CVSS 7.5 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.