Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. llama-index-vector-stores-duckdb
  4. ›
  5. CVE-2025-1750

CVE-2025-1750: LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

June 2, 2025 (updated October 2, 2026)

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).

References

  • github.com/advisories/GHSA-6mcc-q3mg-3qg6
  • github.com/pypa/advisory-database/tree/main/vulns/llama-index/PYSEC-2025-245.yaml
  • github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2
  • github.com/run-llama/llama_index/releases/tag/v0.12.21
  • huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8
  • nvd.nist.gov/vuln/detail/CVE-2025-1750

Code Behaviors & Features

Detect and mitigate CVE-2025-1750 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 0.12.19 before 0.12.21

Fixed versions

  • 0.12.21

Solution

Upgrade to version 0.12.21 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

pypi/llama-index-vector-stores-duckdb/CVE-2025-1750.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:55 +0000.