{"id":"CVE-2025-1750","published":"2025-06-02T10:04:50Z","modified":"2025-06-02T12:18:24Z","title":"SQL Injection in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"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).","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00877,"percentile":0.59898,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2","tags":[]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":11.98},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.3.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-06-02T12:16:54.153918Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-vector-stores-duckdb","vulnerableRanges":[">=0.12.19, <0.12.21"],"patched":["0.12.21"],"from":["GHSA-6mcc-q3mg-3qg6","PYSEC-2026-4242"],"provenance":"source"},{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":[">=0.12.19, <0.12.21"],"patched":["0.12.21"],"from":["PYSEC-2025-245"],"provenance":"source"}],"summary":{"text":"The flaw is an SQL injection vulnerability in the delete function of DuckDBVectorStore in the run-llama/llama_index product. An attacker who can control the ref_doc_id parameter can read and write arbitrary files on the server, potentially leading to remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:50Z"},"euvd":{"id":"EUVD-2025-16628","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-12911","published":"2025-03-20","fixed":"0.12.3","kev":false},{"cve":"CVE-2024-58339","published":"2026-01-12","fixed":"0.12.3","kev":false},{"cve":"CVE-2024-12910","published":"2025-03-20","fixed":"0.12.9","kev":false},{"cve":"CVE-2025-1750","published":"2025-06-02","fixed":"0.12.21","kev":false},{"cve":"CVE-2025-1752","published":"2025-05-10","fixed":"0.12.21","kev":false},{"cve":"CVE-2025-1793","published":"2025-06-05","fixed":"0.12.28","kev":false,"link":{"from":"CVE-2025-1750","to":"CVE-2025-1793","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.12.21","toFixed":"0.12.28","daysApart":3}]}},{"cve":"CVE-2025-3044","published":"2025-07-07","fixed":"0.12.28","kev":false,"link":{"from":"CVE-2025-1750","to":"CVE-2025-3044","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.12.21","toFixed":"0.12.28","daysApart":35}]}}],"package":"PyPI:llama-index"}}