VDB
KO
CRITICAL 9.8

PYSEC-2026-399

LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection

Quick fix

PYSEC-2026-399 — llama-index-retrievers-duckdb-retriever: upgrade to the fixed version with the command below.

pip install --upgrade 'llama-index-retrievers-duckdb-retriever>=0.4.0'

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI / llama-index-retrievers-duckdb-retriever
Introduced in: 0 Fixed in: 0.4.0
Fix pip install --upgrade 'llama-index-retrievers-duckdb-retriever>=0.4.0'

References