SQL Injection in run-llama/llama_index
run-llama/llama_index
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-vector-stores-duckdb PyPI |
|
|
| llama-index PyPI |
|
|
run-llama/llama_index
| Product | Affected | Fixed in |
|---|---|---|
| llama-index-vector-stores-duckdb PyPI |
|
|
| llama-index PyPI |
|
|
An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).
From the CVE record · @huntr_ai
The DuckDBVectorStore delete function is vulnerable to SQL injection through its ref_doc_id parameter. An attacker who can control that parameter may read or write arbitrary files on the server, potentially leading to remote code execution. The input does not specify whether authentication or user interaction is required.
Check installations of the PyPI packages llama-index-vector-stores-duckdb and llama-index at versions >=0.12.19 and <0.12.21.