SQL Injection in Llamaindex
CVE-2025-1750
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).
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.009, 59.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Llamaindex
- Run-Llama Run-Llama/llama Index — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 5 other repositories (a1batr0ssG/VulhubExpand, ARPSyndicate/cve-scores, tanjiti/sec_profile, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8 (Exploit, Third Party Advisory)
- github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2 (Patch)