Home / run-llama / llama_index / CVE-2024-58339
CVE-2024-58339: is it exploited, and which versions of run-llama llama_index are affected and fixed?
CVE-2024-58339 is a denial of service (resources allocated without limits) vulnerability in run-llama llama_index. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: llama_index through 0.12.2 (CVE record by VulnCheck). No fixed version is listed in the sources yet; check the vendor advisory. Severity: High (8.7, CVSS 4.0, from VulnCheck).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:10 UTC and NVD November 19, 2026, 07:14 UTC.
What is CVE-2024-58339?
LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion
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().
From the CVE record by VulnCheck, last updated July 28, 2026, 01:47 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| run-llama | llama_index | through 0.12.2 |
As the CVE record by VulnCheck states it, last updated July 28, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| llamaindex | llamaindex | through 0.12.2 | application |
NVD analysis (status Analyzed), last modified July 14, 2026, 23:17 UTC.
How severe is CVE-2024-58339?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.7 | CVSS 4.0 | 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 | VulnCheck |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-58339 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, January 13, 2026)
- EPSS
- 0.65% probability of exploitation activity in the next 30 days, percentile 52.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-770 Allocation of Resources Without Limits or Throttling
Where are the vendor advisories and references?
- https://huntr.com/bounties/a1d6c30d-fce0-412a-bd22-14e0d4c1fa1f technical-description, exploit
- https://www.llamaindex.ai/ product
- https://github.com/run-llama/llama_index third-party-advisory
- https://www.vulncheck.com/advisories/llamaindex-vannaqueryengine-sql-execution-allows-resource-exhaustion third-party-advisory
Who found and reported it?
- LifeTeam2024 (finder)
As published in the CVE record; contact details are removed.
When was it published, and where is the official record?
- Reserved
- January 9, 2026
- Published
- January 12, 2026, 23:04 UTC
- CVE record updated
- July 28, 2026, 01:47 UTC by VulnCheck
- NVD
- Analyzed, last modified July 14, 2026, 23:17 UTC
- Last checked
- CVE list November 19, 2026, 07:10 UTC; NVD November 19, 2026, 07:14 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect llama_index?
- Jan 12, 2026CVE-2024-14021 run-llama llama_index: deserialization of untrusted data
Questions about CVE-2024-58339
Is CVE-2024-58339 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.65% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of run-llama llama_index are affected by CVE-2024-58339?
llama_index through 0.12.2, per the CVE record by VulnCheck. The tables above give every range the sources list.
Which version fixes CVE-2024-58339?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2024-58339?
High (8.7, CVSS 4.0, from VulnCheck). The severity table above shows each score with its source.
Where is the official record of CVE-2024-58339?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.