~ / search / GHSA-339r-cjv9-x78g

GHSA-339r-cjv9-x78g

LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection

Source: GitHub Advisory Database (reviewed) Critical CVE-2024-11958

Packages

EcosystemPackageAffectedFixed in
PyPI llama-index-retrievers-duckdb-retriever < 0.4.0 0.4.0

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.