Critical, CVSS 9.8PyPIAmendedPublished
LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection
CVE-2024-11958 · GHSA-339r-cjv9-x78g
- Affected
- PyPI llama-index-retrievers-duckdb-retriever < 0.4.0
- Fixed in
- 0.4.0· Vendor fix available
- Issue
- A SQL injection vulnerability exists in the duckdbretriever component of the run-llama/llamaindex 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.
Recommended action: Upgrade to 0.4.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.