{"id":"CVE-2024-11958","published":"2025-03-20T10:10:46Z","modified":"2025-03-20T18:16:55Z","title":"SQL Injection in run-llama/llama_index","vendor":"run-llama","product":"run-llama/llama_index","tier":"tail","description":{"text":"A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in the latest version. The vulnerability arises from the construction of SQL queries without using prepared statements, allowing an attacker to inject arbitrary SQL code. This can lead to remote code execution (RCE) by installing the shellfs extension and executing malicious commands.","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.01408,"percentile":0.72795,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1","tags":[]},{"url":"https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0","tags":[]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":14.56},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"run-llama","affectedVersions":[{"vendor":"run-llama","product":"run-llama/llama_index","versions":[">= unspecified, < 0.4.0"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2025-03-20T17:51:08.513948Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index-retrievers-duckdb-retriever","vulnerableRanges":["<0.4.0"],"patched":["0.4.0"],"from":["GHSA-339r-cjv9-x78g","PYSEC-2026-399"],"provenance":"source"}],"summary":{"text":"A SQL injection flaw exists in the duckdb_retriever component of the run-llama/llama_index repository, where SQL queries are built without prepared statements. An attacker can inject arbitrary SQL, which can lead to remote code execution by installing the shellfs extension and running malicious commands, and the attack needs only network access with no authentication or user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:48:26Z"},"euvd":{"id":"EUVD-2025-7043","exploited":false,"provenance":"source"}}