GHSA-2jxw-4hm4-6w87

    Dashboard / Vulnerabilities / GHSA-2jxw-4hm4-6w87

    GHSA-2jxw-4hm4-6w87

    Published: 22 Jan 2024Last Modified: 16 Feb 2024

    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.

    Affected packages

    Package

    Name: llama-index

    Purl: pkg:pypi/llama-index

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -None

    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
    GHSA-2jxw-4hm4-6w87 | CVE-DB