VDB
Sign up
—

PYSEC-2024-12

Quick fix

PYSEC-2024-12 — llama-index: upgrade to the fixed version with the command below.

pip install --upgrade 'llama-index>=0.9.35'

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/llama-index
Introduced in: 0Fixed in: 0.9.35
Fixpip install --upgrade 'llama-index>=0.9.35'

References