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.
References (2)
Core 2
Core References
Exploit, Third Party Advisory
https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1
Scores
CVSS v3
9.8
EPSS
0.0413
EPSS Percentile
88.7%
Attack Vector
NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
yes
Technical Impact
total
Details
CWE
CWE-89
Status
published
Products (2)
llamaindex/llamaindex
< 0.4.0
pypi/llama-index-retrievers-duckdb-retriever
0 - 0.4.0PyPI
Published
Mar 20, 2025
Tracked Since
Feb 18, 2026