CVE-2024-58339
CVE-2024-58339 is a high-severity vulnerability in Llamaindex with a CVSS 3.x base score of 7.5. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-770.
Key facts
- Severity: High (CVSS 3.x base score 7.5)
- CVSS v4: 8.7
- EPSS exploit prediction: 1% (43rd percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-2397
- Weakness: CWE-770
- Affected product: Llamaindex
- Published:
- Last modified:
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().
Frequently asked questions
- What is CVE-2024-58339?
- 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 severe is CVE-2024-58339?
- CVE-2024-58339 has a CVSS 3.x base score of 7.5, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is none, integrity none, and availability high.
- Is CVE-2024-58339 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (43rd percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-58339?
- CVE-2024-58339 affects Llamaindex. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-58339?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2024-58339 have an EU (EUVD) identifier?
- Yes. CVE-2024-58339 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-2397.
- When was CVE-2024-58339 published?
- CVE-2024-58339 was published on 2026-01-12 and last updated on 2026-06-17.
References
- https://github.com/run-llama/llama_index
- https://huntr.com/bounties/a1d6c30d-fce0-412a-bd22-14e0d4c1fa1f
- https://www.llamaindex.ai/
- https://www.vulncheck.com/advisories/llamaindex-vannaqueryengine-sql-execution-allows-resource-exhaustion
Affected products (1)
- cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*
More vulnerabilities in Llamaindex
- CVE-2025-1793 — Critical (CVSS 9.8): Multiple vector store integrations in run-llama/llama_index version v0.12.21 have SQL injection vulnerabilities. These…
- CVE-2025-1750 — Critical (CVSS 9.8): An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version…
- CVE-2024-12909 — Critical (CVSS 9.8): A vulnerability in the FinanceChatLlamaPack of the run-llama/llama_index repository, versions up to v0.12.3, allows for…
- CVE-2024-11958 — Critical (CVSS 9.8): A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository,…
- CVE-2024-3271 — Critical (CVSS 9.8): A command injection vulnerability exists in the run-llama/llama_index repository, specifically within the safe_eval…
- CVE-2024-23751 — Critical (CVSS 9.8): LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL feature in NLSQLTableQueryEngine,…
All CVEs affecting Llamaindex →
Other CWE-770 (Allocation of Resources Without Limits or Throttling) vulnerabilities
- CVE-2026-31283 — Critical (CVSS 9.8): In Totara LMS v19.1.5 and before, the forgot password API does not implement rate limiting for the target email…
- CVE-2020-37067 — Critical (CVSS 9.8): Filetto 1.0 FTP server contains a denial of service vulnerability in the FEAT command processing that allows attackers…
- CVE-2021-47875 — Critical (CVSS 9.8): GeoGebra CAS Calculator 6.0.631.0 contains a denial of service vulnerability that allows attackers to crash the…
- CVE-2025-11832 — Critical (CVSS 9.8): Allocation of Resources Without Limits or Throttling vulnerability in Azure Access Technology BLU-IC2, Azure Access…
- CVE-2024-44241 — Critical (CVSS 9.8): The issue was addressed with improved bounds checks. This issue is fixed in iOS 18.1 and iPadOS 18.1, macOS Sequoia…
- CVE-2022-3439 — Critical (CVSS 9.8): Allocation of Resources Without Limits or Throttling in GitHub repository ikus060/rdiffweb prior to 2.5.0.
Browse all CWE-770 (Allocation of Resources Without Limits or Throttling) vulnerabilities →