CVE-2024-11958
JSON

9.8critical

SQL Injection in run-llama/llama_index

Severity
9.8critical CVSS:3.0 by @huntr_ai
Exploit likelihood
1.43% (higher than 73% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
@huntr_ai
Also known as
GHSA-339r-cjv9-x78gPYSEC-2026-399

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

Product or packageVersionsReported by
run-llama run-llama/llama_indexfrom unspecified before 0.4.0CVE List
llama-index-retrievers-duckdb-retriever (PyPI)before 0.4.0GitHub Advisory Database, PyPA Advisory Database
llamaindex llamaindexbefore 0.4.0NVD

All scores

@huntr_ai9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GitHub9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.8critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-89

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total.

What each source says

CVE List

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.

GitHub Advisory Database

A SQL injection vulnerability exists in the duckdb_retriever component of the run-llama/llama_index repository, specifically in llama-index-retrievers-duckdb-retriever prior to v0.4.0. 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.

NVD (es)

Existe una vulnerabilidad de inyección SQL en el componente `duckdb_retriever` del repositorio run-llama/llama_index, concretamente en la última versión. Esta vulnerabilidad surge de la construcción de consultas SQL sin usar sentencias preparadas, lo que permite a un atacante inyectar código SQL arbitrario. Esto puede provocar la ejecución remota de código (RCE) al instalar la extensión shellfs y ejecutar comandos maliciosos.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-11958 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-339r-cjv9-x78g changed 2026-07-21CC-BY-4.0
NVDCVE-2024-11958 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-399 changed 2026-07-01CC-BY-4.0