Skip to main content
← All vulnerabilities
CVE-2024-11958PYSEC-2026-399GHSA-339R-CJV9-X78G

SQL Injection in run-llama/llama_index

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

Summary

A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in the latest version. The vulnerability arises from the construction of SQL queries without using prepared statements, allowing an attacker to inject arbitrary SQL code. This can lead to remote code execution (RCE) by installing the shellfs extension and executing malicious commands.

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.4.0

  • llama-index-retrievers-duckdb-retrieverPyPI

    fixed in 0.4.0

References 2

huntr.com

GitHub · run-llama/llama_index