CVE-2024-11958
criticalpriority · track · 1EPSS 0.014 · 73 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
- PyPI llama-index-retrievers-duckdb-retriever< 0.4.0osvUSpkg:pypi/llama-index-retrievers-duckdb-retriever
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-339r-cjv9-x78g LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection2025-03-20ghsa · osvUS
A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in llama-index-retrievers-duckdb-retriever prior to v0.4.0. 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.
- PYSEC-2026-399 LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection2026-06-29vendor · osvUS
A SQL injection vulnerability exists in the `duckdb_retriever` component of the run-llama/llama_index repository, specifically in llama-index-retrievers-duckdb-retriever prior to v0.4.0. 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.
also known as (6)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (8)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/cve-2024-11958cnnvd
- https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0cnnvd
- https://github.com/run-llama/llama_index/releases/tag/v0.12.25Patchcnnvd
- https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1cnnvd
- https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0enisa_euvd
- https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1enisa_euvd
- https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0Patchnvd
- https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1ExploitThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan