CVE-2024-11958 json
SQL Injection in run-llama/llama_index
published 2025-03-20 19 mo ago modified 2026-07-21 3 mo ago also GHSA-339r-cjv9-x78g , PYSEC-2026-399 , EUVD-2025-7043
- cvss
- 9.8
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 73%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- pypi llama-index-retrievers-duckdb-retriever 0.4.0
- run-llama run-llama/llama_index 0.4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-11958 updated cvss 9.8
llama-index: SQL Injection in run-llama/llama_index
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 19 mo ago
Exploit prediction
1.44% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- huntr.com https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | llama-index-retrievers-duckdb-retriever | <0.4.0 |
0.4.0 |
Affected products
- run-llama run-llama/llama_index
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0
web, patch
-
huntr.com
/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1
web, exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-11958
advisory
-
github.com
/advisories/GHSA-339r-cjv9-x78g
advisory
-
github.com
/pypa/advisory-database/tree/main/vulns/llama-index-retrievers-duckdb-retriever/PYSEC-2026-399.yaml
web
-
github.com
/run-llama/llama_index
package
-
pypi.org
/project/llama-index-retrievers-duckdb-retriever
web, package
Sources
- CVE List CVE-2024-11958
- GitHub Advisory GHSA-339r-cjv9-x78g
- NVD CVE-2024-11958
- OSV PYSEC-2026-399
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.