Skip to content

CVE-2025-1750 SQL Injection in run-llama/llama_index

CriticalCVSS 9.8 EPSS 0.88%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: yes · technical impact: total

Description

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

Upgrade path

4 packages: 4 fixed.

PackageAffectedFixed inStatus
llamaindex >= 0.12.19, < 0.12.21 0.12.21 Fixed
pypi llama-index(PyPI) = 0.12.19; = 0.12.20; >= 0.12.19, < 0.12.21 0.12.21 Fixed
pypi llama-index-vector-stores-duckdb(PyPI) >= 0.12.19, < 0.12.21 0.12.21 Fixed
run-llama/llama_index < 0.3.1 0.3.1 Fixed

Affected products

ProductAffected versionsFixed in
pypi llama-index-vector-stores-duckdb(PyPI) >= 0.12.19, < 0.12.21 0.12.21
pypi llama-index(PyPI) >= 0.12.19, < 0.12.21 0.12.21
pypi llama-index(PyPI) = 0.12.19 No fix listed
pypi llama-index(PyPI) = 0.12.20 No fix listed
run-llama/llama_index < 0.3.1 0.3.1
llamaindex >= 0.12.19, < 0.12.21 0.12.21

References