Skip to content
OpenAdvisories
Critical · 9.8 CVE-2025-1750 EUVD-2025-16628GHSA-6mcc-q3mg-3qg6PYSEC-2025-245PYSEC-2026-4242

SQL Injection in run-llama/llama_index

Published Jun 2, 2025 · Updated Jun 2, 2025 · Assigned by @huntr_ai

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

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < 0.3.1 0.3.1

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index >= 0.12.19, < 0.12.21 0.12.21 PYSEC-2025-245
PyPI llama-index-vector-stores-duckdb >= 0.12.19, < 0.12.21 0.12.21 GHSA-6mcc-q3mg-3qg6

References