CVE-2024-11958

CRITICAL
Published Mar 20, 2025 Modified Jul 29, 2025 CWE-89

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.

Is your site exposed to CVE-2024-11958?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

9.8
CRITICAL
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weakness Type (CWE)

CWE-89 SQL Injection

Affected Products

Vendor Product
llamaindex llamaindex

References

Frequently Asked Questions

What is CVE-2024-11958? +
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. It has a CVSS v3.1 base score of 9.8 (CRITICAL).
How severe is CVE-2024-11958? +
CVE-2024-11958 has a CVSS v3.1 score of 9.8 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2024-11958? +
CVE-2024-11958 affects products from llamaindex, specifically: llamaindex. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-11958? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-11958 — free, no signup required.