ADVISORIES

PyPA Advisory Database

PYSEC-2026-4242

LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

Details

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).

Affected packages

EcosystemPackageAffected versions
PyPIllama-index-vector-stores-duckdb
From 0.12.19 before 0.12.21 (fixed in 0.12.21)

References