{"id":"CVE-2024-23751","details":"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.","aliases":["GHSA-2jxw-4hm4-6w87","PYSEC-2024-12"],"modified":"2026-08-12T03:51:14.695589095Z","published":"2024-01-22T00:00:00Z","database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23751.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/23xxx/CVE-2024-23751.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-23751"},{"type":"REPORT","url":"https://github.com/run-llama/llama_index/issues/9957"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/run-llama/llama_index","events":[{"introduced":"0"},{"fixed":"7da2d14c048da63bed2defe169cae56ad12289ce"}],"database_specific":{"cpe":"cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"0.9.34"},{"last_affected":"0.9.34"}],"source":["DESCRIPTION","CPE_RANGE"]}}],"versions":["v0.9.31","v0.9.29","v0.9.28.post2","v0.9.28.post1","v0.9.28","v0.9.26","v0.9.25","v0.9.22","v0.9.17.dev1","v0.9.16.post1","v0.9.15.post2","v0.9.15.post1","v0.9.15","v0.9.14.post3","v0.9.12","v0.9.11.post1","v0.9.10","v0.9.9","v0.9.8.post1","v0.9.8","v0.9.7","v0.9.6.post2","v0.9.6.post1","v0.9.6","v0.9.5","v0.9.3.post1","v0.9.3","v0.9.1","v0.9.0","v0.8.69.post2","v0.8.69.post1","v0.8.69","v0.8.66","v0.8.63.post1","v0.8.53.post1","v0.8.45.post1","v0.8.45","v0.8.43.post1","v0.8.43","v0.8.38","v0.8.29.post1","v0.8.25","v0.8.11.post3","v0.8.11.post2","v0.8.11.post1","v0.8.10","v0.8.7","v0.8.5.post1","v0.8.4","v0.8.3","v0.8.2.post1","v0.8.2","v0.8.1.post1","v0.7.24.post1","v0.7.20","v0.7.19","v0.7.14","v0.7.13","v0.7.12","v0.7.11.post1","v0.7.11","v0.7.10","v0.7.9","v0.6.21","v0.6.3","v0.6.0","v0.6.0.alpha1","v0.4.2","v0.4.1","v0.4.0","v0.3.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-23751.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"}]}