{"id":"GHSA-6mcc-q3mg-3qg6","summary":"LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id","details":"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).","aliases":["CVE-2025-1750","PYSEC-2025-245"],"modified":"2026-10-02T22:56:01.909648537Z","published":"2025-06-02T12:30:33Z","database_specific":{"nvd_published_at":"2025-06-02T10:15:20Z","cwe_ids":["CWE-89"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2026-10-02T22:38:36Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1750"},{"type":"WEB","url":"https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml"},{"type":"PACKAGE","url":"https://github.com/run-llama/llama_index"},{"type":"WEB","url":"https://github.com/run-llama/llama_index/releases/tag/v0.12.21"},{"type":"WEB","url":"https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8"}],"affected":[{"package":{"name":"llama-index-vector-stores-duckdb","ecosystem":"PyPI","purl":"pkg:pypi/llama-index-vector-stores-duckdb"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.12.19"},{"fixed":"0.12.21"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/06/GHSA-6mcc-q3mg-3qg6/GHSA-6mcc-q3mg-3qg6.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}