CVE-2024-11958
CRITICAL 9.8CVSS 3.0LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection
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.
- Published
- 20 Mar 2025
- Last modified
- 21 Jul 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- GHSA-339r-cjv9-x78gPYSEC-2026-399
- Sources
- NVDJSONOSV GHSA-339r-cjv9-x78gJSONOSV PYSEC-2026-399JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | llamaindex | llamaindexcpe:2.3:a:llamaindex:llamaindex:*:*:*:*:*:*:*:* |
< 0.4.0 | 0.4.0 |
| OSV | PyPI | llama-index-retrievers-duckdb-retriever | < 0.4.0 | 0.4.0 |
References
- https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0 · Patch, WEB
- https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1 · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-11958 · ADVISORY
- https://github.com/advisories/GHSA-339r-cjv9-x78g · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/llama-index-retrievers-duckdb-retriever/PYSEC-2026-399.yaml · WEB
- https://github.com/run-llama/llama_index · PACKAGE
- https://pypi.org/project/llama-index-retrievers-duckdb-retriever · WEB, PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 20 Mar 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Jun 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 20 Mar 2025)