CVE-2025-1750
CRITICAL 9.8CVSS 3.0LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id
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).
- Published
- 2 Jun 2025
- Last modified
- 15 Oct 2026
- Assigned by
- security@huntr.dev
- NVD status
- Analyzed
- Weakness
- CWE-89
- Also known as
- GHSA-6mcc-q3mg-3qg6PYSEC-2025-245PYSEC-2026-4242
- Sources
- NVDJSONOSV GHSA-6mcc-q3mg-3qg6JSONOSV PYSEC-2025-245JSONOSV PYSEC-2026-4242JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | PyPA | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| 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 | 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.12.19, < 0.12.21 | 0.12.21 |
| OSV | PyPI | llama-index-vector-stores-duckdb | >= 0.12.19, < 0.12.21 | 0.12.21 |
| OSV | PyPI | llama-index | >= 0.12.19, < 0.12.21 | 0.12.21 |
References
- https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2 · Patch, WEB, FIX
- https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8 · Exploit, Third Party Advisory, WEB, EVIDENCE
- https://nvd.nist.gov/vuln/detail/CVE-2025-1750 · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml · WEB
- https://github.com/run-llama/llama_index · PACKAGE
- https://github.com/run-llama/llama_index/releases/tag/v0.12.21 · WEB
- https://pypi.org/project/llama-index-vector-stores-duckdb · PACKAGE
- https://github.com/advisories/GHSA-6mcc-q3mg-3qg6 · ADVISORY
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 2 Jun 2025)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 15 Oct 2026)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 2 Jun 2025)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 2 Jun 2025)