Advisory

PYSEC-2024-12

Also known as: CVE-2024-23751, GHSA-2jxw-4hm4-6w87

Summary

The record has no summary.

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.

Severity

Not rated by the source.

Dates

Published
2024-01-22 01:15 UTC
Modified
2026-06-10 17:02 UTC

Affected packages and fixes

llama-index

PyPI · All systems

Affected

  • introduced 0, fixed 0.9.35 (ecosystem)

Fixed versions

0.9.35

Fix

  • Fixed version 0.9.35
    pip install --upgrade llama-index==0.9.35

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences