Advisory

GHSA-2jxw-4hm4-6w87

Also known as: CVE-2024-23751, PYSEC-2024-12

Summary

SQL injection in llama-index

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2024-01-22 03:30 UTC
Modified
2024-02-16 08:23 UTC

Affected packages and fixes

llama-index

PyPI · All systems

Affected

  • introduced 0, last affected 0.9.35 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences