What’s Vulnerable › Vulnerabilities

CVE-2024-11958: SQL Injection in run-llama/llama_index

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

How to fix

Upgrade to a fixed version: run-llama/llama_index 0.4.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-11958 or the next vulnerability affects your stack