Advisory

PYSEC-2026-4242

Also known as: CVE-2025-1750, GHSA-6mcc-q3mg-3qg6, PYSEC-2025-245

Summary

LlamaIndex DuckDBVectorStore vulnerable to SQL injection through ref_doc_id

Details

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

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2026-10-15 10:22 UTC
Modified
2026-10-15 14:56 UTC

Affected packages and fixes

llama-index-vector-stores-duckdb

PyPI · All systems

Affected

  • introduced 0.12.19, fixed 0.12.21 (ecosystem)

Fixed versions

0.12.21

Fix

  • Fixed version 0.12.21
    pip install --upgrade llama-index-vector-stores-duckdb==0.12.21

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences