CVE-2025-1750 — Vulnerability in llama-index-vecto…res-duckdb
LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.38%). Schedule for your next planned update.
Does your project use an affected llama-index-vector-stores-duckdb version?
Paste your requirements.txt to check it for CVE-2025-1750 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama_index version v0.12.19. This vulnerability allows an attacker to manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to remote code execution (RCE).
Advisory Timeline
- First published June 2, 2025 (542 days ago).
- Last revised October 15, 2026 — 500 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
pip install "llama-index-vector-stores-duckdb>=0.12.21"
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: PyPI (1).
| Package | Fixed In |
|---|---|
| llama-index-vector-stores-duckdb PyPI · Affected: All versions | 0.12.21 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-1750ADVISORY
- https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yamlWEB
- https://github.com/run-llama/llama_indexPACKAGE
- https://github.com/run-llama/llama_index/releases/tag/v0.12.21WEB
- https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8WEB
Frequently Asked Questions
- What is CVE-2025-1750?
- LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.8/10).
- How do I check if my project is affected by CVE-2025-1750?
- CVE-2025-1750 affects llama-index-vector-stores-duckdb. It has a 1.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2025-1750 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 72.3% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-77359CRITICAL
Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes
- CVE-2026-77312CRITICAL
Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)