All reports
Critical

SQL injection in llama-index

Affected versions

Version ranges need review.

Affected versions
<0.9.35
Fixed version
0.9.35
Affected versions
<= 0.9.35
Fixed version
Not reported

Exploitation

CVE-2024-23751

Probability of exploitation in the next 30 days: 0.65%

FIRST EPSS · 2026-11-22

Description

LlamaIndex (aka llama_index) through 0.9.35 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.

Links