Security mailing lists by PureSourceCode

CVE-2024-23751

CRITICAL 9.8CVSS 3.1

SQL injection in llama-index

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.

Published
22 Jan 2024
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-89
Also known as
GHSA-2jxw-4hm4-6w87PYSEC-2024-12
Sources
NVDJSONOSV GHSA-2jxw-4hm4-6w87JSONOSV PYSEC-2024-12JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD llamaindex llamaindex
cpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:*
<= 0.9.34
OSV PyPI llama-index <= 0.9.35
OSV PyPI llama-index < 0.9.35 0.9.35

References

History

  • 25 Nov 2026 20:54 UTC · NVD: first stored (published 22 Jan 2024)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 22 Jan 2024)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 22 Jan 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.