CVE-2024-11958

published 20 Mar 2025 · updated 20 Mar 2025

SQL Injection in run-llama/llama_index

9.8CriticalCVSS 9.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.4.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
run-llama<0.4.00.4.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-11958 severity on Zeptric[![CVE-2024-11958](https://zeptric.io/badge/cve/CVE-2024-11958.svg)](https://zeptric.io/cve/CVE-2024-11958)