Vulnerabilities · 2024 · Llamaindex
CVE-2024-11958
Llamaindex vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Llamaindex. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Llamaindex runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0 · Patch
- huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2024-11958
- github.com/advisories/GHSA-339r-cjv9-x78g
- github.com/pypa/advisory-database/tree/main/vulns/llama-index-retrievers-duckdb-retriever/
- github.com/run-llama/llama_index
- pypi.org/project/llama-index-retrievers-duckdb-retriever
- nvd.nist.gov/vuln/detail/CVE-2024-11958
- cve.org/CVERecord?id=CVE-2024-11958
More vulnerabilities in Llamaindex products
CVE-2025-7707CVE-2025-6211CVE-2025-6210CVE-2025-6209CVE-2025-5472CVE-2025-3225CVE-2025-3108CVE-2025-3046All 24
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.