{"id":"CVE-2024-23751","published":"2024-01-22T00:00:00Z","modified":"2025-06-20T18:42:53Z","title":"LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL feature in NLSQLTableQueryEngine…","vendor":null,"product":null,"tier":"tail","description":{"text":"LlamaIndex (aka llama_index) through 0.9.34 allows SQL injection via the Text-to-SQL feature in NLSQLTableQueryEngine, SQLTableRetrieverQueryEngine, NLSQLRetriever, RetrieverQueryEngine, and PGVectorSQLQueryEngine. For example, an attacker might be able to delete this year's student records via \"Drop the Students table\" within English language input.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.00654,"percentile":0.52278,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/run-llama/llama_index/issues/9957","tags":[]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":10.46},{"name":"CVSS severity","points":6.86}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-01-22T18:43:51.301730Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"llama-index","vulnerableRanges":["<=0.9.35","<0.9.35"],"patched":["0.9.35"],"from":["GHSA-2jxw-4hm4-6w87","PYSEC-2024-12"],"provenance":"source"}],"summary":{"text":"The LlamaIndex library (llama_index), through version 0.9.34, contains an SQL injection flaw in its Text-to-SQL feature, affecting the NLSQLTableQueryEngine, SQLTableRetrieverQueryEngine, NLSQLRetriever, RetrieverQueryEngine and PGVectorSQLQueryEngine components. An attacker who can supply natural-language input to these query engines can have it translated into malicious SQL that is executed against the underlying database, for example to delete records such as a Students table, with no authentication or user interaction required and network access as the only prerequisite.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:35:39Z"},"euvd":{"id":"EUVD-2024-0093","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-6210","published":"2025-07-07","fixed":"0.5.2","kev":false},{"cve":"CVE-2023-39662","published":"2023-08-15","fixed":"0.9.14","kev":false,"link":{"from":"CVE-2023-39662","to":"CVE-2024-23751","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:llama-index","fromFixed":"0.9.14","toFixed":"0.9.35","daysApart":160}]}},{"cve":"CVE-2024-23751","published":"2024-01-22","fixed":"0.9.35","kev":false},{"cve":"CVE-2024-4181","published":"2024-05-16","fixed":"0.10.13","kev":false},{"cve":"CVE-2024-45201","published":"2024-08-22","fixed":"0.10.38","kev":false},{"cve":"CVE-2024-14021","published":"2026-01-12","fixed":"0.11.7","kev":false}],"package":"PyPI:llama-index"}}