Skip to main content
← All vulnerabilities
CVE-2024-12909GHSA-X48G-HM9C-WW42PYSEC-2026-398

SQL Injection to RCE in run-llama/llama_index

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

A vulnerability in the FinanceChatLlamaPack of the run-llama/llama_index repository, versions up to v0.12.3, allows for SQL injection in the `run_sql_query` function of the `database_agent`. This vulnerability can be exploited by an attacker to inject arbitrary SQL queries, leading to remote code execution (RCE) through the use of PostgreSQL's large object functionality. The issue is fixed in version 0.3.0.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • run-llama run-llama/llama_index

    fixed in 0.3.0

  • llama-index-packs-finchatPyPI

    through 0.3.0

References 2

huntr.com

GitHub · run-llama/llama_index