PYSEC-2024-12
Dashboard / Vulnerabilities / PYSEC-2024-12
PYSEC-2024-12
Published: 22 Jan 2024Last Modified: 10 Jun 2026
Aliases:
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.
References: https://github.com/run-llama/llama_index/issues/9957, https://github.com/advisories/GHSA-2jxw-4hm4-6w87
Affected packages
Package
Name: llama-index
Purl: pkg:pypi/llama-index
Affected ranges
Type: ECOSYSTEM
Events:
Introduced- 0
Fixed -0.9.35
Affected versions
0.4.10
0.4.11
0.4.12
0.4.13
0.4.14
0.4.15
0.4.16
0.4.17
0.4.18
0.4.19
0.4.20
0.4.21
0.4.22
0.4.22.post1
0.4.23
0.4.24
0.4.25
0.4.26
0.4.27
0.4.28
0.4.29
0.4.30
0.4.31
0.4.32
0.4.33
0.4.34
0.4.35
0.4.35.post1
0.4.36
0.4.37
0.4.38
0.4.39
0.4.4
0.4.4.post1
0.4.4.post2
0.4.40
0.4.5
0.4.6
0.4.7
0.4.8
0.4.9
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
