CVE-2024-11958

CRITICAL

run-llama/llama_index - SQL Injection

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 9.8
EPSS 0.0413
EPSS Percentile 88.7%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable yes
Technical Impact total

Details

CWE
CWE-89
Status published
Products (2)
llamaindex/llamaindex < 0.4.0
pypi/llama-index-retrievers-duckdb-retriever 0 - 0.4.0PyPI
Published Mar 20, 2025
Tracked Since Feb 18, 2026