Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

CVE-2024-11958SQL Injection in run-llama/llama_index

Critical 9.8

In plain English

A critical-severity SQL injection in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)1.4%top 26.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-index-retrievers-duckdb-retriever0.4.0GHSA-339r-cjv9-x78g
PyPIllama-index-retrievers-duckdb-retriever0.4.0PYSEC-2026-399

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before 0.4.0

Weakness: CWE-89 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References