Description
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: 2024-01-22
Score: 9.8 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
EUVD EUVD EUVD-2024-0093 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.
Github GHSA Github GHSA GHSA-2jxw-4hm4-6w87 SQL injection in llama-index
History

Fri, 20 Jun 2025 19:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Subscriptions

Llamaindex Llamaindex
cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2025-06-20T18:42:53.946Z

Reserved: 2024-01-22T00:00:00.000Z

Link: CVE-2024-23751

cve-icon Vulnrichment

Updated: 2024-08-01T23:13:07.393Z

cve-icon NVD

Status : Modified

Published: 2024-01-22T01:15:08.557

Modified: 2025-06-20T19:15:35.067

Link: CVE-2024-23751

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses