Skip to content
OpenAdvisories
Critical · 9.8 CVE-2024-11958 EUVD-2025-7043GHSA-339r-cjv9-x78gPYSEC-2026-399

SQL Injection in run-llama/llama_index

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

Description

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.

Affected products

VendorProductAffectedFixed
run-llama run-llama/llama_index unspecified – < 0.4.0 0.4.0

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI llama-index-retrievers-duckdb-retriever < 0.4.0 0.4.0 GHSA-339r-cjv9-x78g

References