Skip to main content

CVE-2025-1750 — Vulnerability in llama-index-vecto…res-duckdb

CRITICAL

LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

Published June 2, 2025Updated October 15, 2026Source: OSV

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.

Check my requirements.txt

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
Update llama-index-vector-stores-duckdb to 0.12.21 or later
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).

PackageFixed In
llama-index-vector-stores-duckdb PyPI · Affected: All versions0.12.21

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.8 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

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

CVSS Score
9.8

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
1.38%
EPSS percentile: 72.3

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

GHSA-6mcc-q3mg-3qg6
PYSEC-2025-245
PYSEC-2026-4242

Related CVEs

  • CVE-2026-77359
    CRITICAL

    Jupyter MCP Server: Browser DNS rebinding can hijack the Jupyter backend through management routes

  • CVE-2026-77312
    CRITICAL

    Flyto2 Core: Arbitrary file write via unguarded data.*/file.* modules (incomplete fix of CVE-2026-67429)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my requirements.txt