CVE-2024-58339Llamaindex
High 8.7 No auth needed
Follow: this CVE · Llamaindex · Llamaindex We alert you by email or Slack (account required).
- Priority
- 67
- CVSS 4.0
- 8.7
- EPSS
- 1.0% probability of exploitation in 30 days · percentile 63
- Auth required
- No
- Published
- Jan 12, 2026
- Updated
- Jul 14, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
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().
What to do
- Apply the vendor's security update for Llamaindex.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | llama-index |
< 0.12.3 |
0.12.3 |
pip install "llama-index>=0.12.3" |
Per OSV / GitHub Advisories (PYSEC-2026-86). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| llamaindex | llamaindex | ≤ 0.12.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Product
- huntr.com Exploit Third Party Advisory
- www.llamaindex.ai Product
- www.vulncheck.com Third Party Advisory