CVE-2024-23751 json
SQL injection in llama-index
published 2024-01-22 2 y ago modified 2026-06-17 4 mo ago also GHSA-2jxw-4hm4-6w87 , PYSEC-2024-12 , EUVD-2024-0093
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.7%
- EPSS 0.7% chance of exploitation in 30 days, percentile 51%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi llama-index 0.9.35
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.65% chance of exploitation in the next 30 days, higher than 51% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/run-llama/llama_index/issues/9957 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index | <=0.9.35 <0.9.35 |
0.9.35 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/run-llama/llama_index/issues/9957
web, exploit, issue-tracking, vendor-advisory, report
-
nvd.nist.gov
/vuln/detail/CVE-2024-23751
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2024-12.yaml
web
-
github.com
/run-llama/llama_index
package
-
github.com
/advisories/GHSA-2jxw-4hm4-6w87
advisory
Sources
- CVE List CVE-2024-23751
- GitHub Advisory GHSA-2jxw-4hm4-6w87
- NVD CVE-2024-23751
- OSV PYSEC-2024-12
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.