Read the docs
TI-2024-11094 Aliases CVE-2024-11958GHSA-339r-cjv9-x78g

SQL Injection in run-llama/llama_index

Priority HIGH 82CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.0 · CNA. Fix status from CNA and GitHub. Impact type from CWE-89.

Summary

A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in the latest version. The vulnerability arises from the construction of SQL queries without using prepared statements, allowing an attacker to inject arbitrary SQL code. This can lead to remote code execution (RCE) by installing the shellfs extension and executing malicious commands.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.01444 73rd percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed run-llama/llama_index (run-llama): 0.4.0llama-index-retrievers-duckdb-retriever (PyPI): 0.4.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
run-llamarun-llama/llama_indexbefore 0.4.00.4.0Patch availableCNA
—llama-index-retrievers-duckdb-retriever (PyPI)before 0.4.00.4.0Patch availableGHSA-339r-cjv9-x78g
  • run-llama/llama_index Vendorrun-llama Affected before 0.4.0 Fixed in 0.4.0 Patch available CNA
  • llama-index-retrievers-duckdb-retriever (PyPI) Vendor— Affected before 0.4.0 Fixed in 0.4.0 Patch available GHSA-339r-cjv9-x78g

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*before 0.4.0Vulnerablerun-llama
  • cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:* Versions before 0.4.0 Vulnerable ·run-llama

Remediation

  • Fix · CNA run-llama/llama_index (run-llama) Fixed in 0.4.0
  • Fix · GHSA-339r-cjv9-x78g llama-index-retrievers-duckdb-retriever (PyPI) Fixed in 0.4.0 Advisory →

Vendor assessments

Red Hat

Red Hat's page for this CVE →

Not affected: 1 product
  • Red Hat

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-11958
  2. 2026-10-03 Alias added: GHSA-339r-cjv9-x78g

References

  • TI-2025-01545 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2025-01507 SQL Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2024-11960 SQL Injection to RCE in run-llama/llama_index CVSS 3.1CRITICAL 9.8
  • TI-2024-03068 Command Injection in run-llama/llama_index CVSS 3.0CRITICAL 9.8
  • TI-2024-15754 LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL… CVSS 3.1CRITICAL 9.8
  • TI-2024-38426 LlamaIndex <= 0.12.2 VannaQueryEngine SQL Execution Allows Resource Exhaustion CVSS 4.0HIGH 8.7
See all 23 →

Sources