{"id":"CVE-2025-1750","aliases":["GHSA-6mcc-q3mg-3qg6","PYSEC-2025-245","PYSEC-2026-4242"],"title":"LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id","summary":"LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","vendor":"llama-index-vector-stores-duckdb","product":"llama-index-vector-stores-duckdb","ecosystem":"pip","affected":["llama-index-vector-stores-duckdb >= 0.12.19, < 0.12.21"],"patched":["llama-index-vector-stores-duckdb 0.12.21"],"published":"2025-06-02","updated":"2026-10-15","sourceUpdated":"2026-10-15T14:56:11.668398293Z","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-6mcc-q3mg-3qg6","references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1750"},{"url":"https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml"},{"url":"https://github.com/run-llama/llama_index"},{"url":"https://github.com/run-llama/llama_index/releases/tag/v0.12.21"},{"url":"https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8"},{"url":"https://pypi.org/project/llama-index-vector-stores-duckdb"},{"url":"https://github.com/advisories/GHSA-6mcc-q3mg-3qg6"}],"tags":["osv","pip","ghsa"],"epss":0.00817,"epssPercentile":0.56919,"cwe":["CWE-89"],"ingestedAt":"2026-07-13T18:58:06.681Z","slug":"CVE-2025-1750","body":"## Overview\n\nAn 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).\n\n## Affected packages\n\n- `llama-index-vector-stores-duckdb >= 0.12.19, < 0.12.21`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `llama-index-vector-stores-duckdb 0.12.21`","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}