{"cve":"CVE-2024-11958","nvd":{"published":"2025-03-20T10:15:26.030","modified":"2026-06-17T06:58:46.513","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://github.com/run-llama/llama_index/commit/35bd221e948e40458052d30c6ef2779bc965b6d0","https://huntr.com/bounties/8ddf66e1-f74c-4d53-992b-76bc45cacac1"],"products":["llamaindex:llamaindex"],"source":"nvd","synced_at":"2026-10-19T22:00:17.429720821+00:00"},"epss":{"cve":"CVE-2024-11958","score":0.01444,"percentile":0.73256,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-339r-cjv9-x78g","url":"https://osv.dev/vulnerability/GHSA-339r-cjv9-x78g","summary":" LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection","modified":"2026-07-21T15:15:51.607956549Z","packages":[{"ecosystem":"PyPI","name":"llama-index-retrievers-duckdb-retriever","purl":"pkg:pypi/llama-index-retrievers-duckdb-retriever","ranges":["<0.4.0"],"fixed":["0.4.0"]}]},{"id":"PYSEC-2026-399","url":"https://osv.dev/vulnerability/PYSEC-2026-399","summary":" LlamaIndex Retrievers Integration: DuckDBRetriever SQL Injection","modified":"2026-07-01T20:22:56.508105Z","packages":[{"ecosystem":"PyPI","name":"llama-index-retrievers-duckdb-retriever","purl":"pkg:pypi/llama-index-retrievers-duckdb-retriever","ranges":["<0.4.0"],"fixed":["0.4.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}