# PYSEC-2025-245: An SQL injection vulnerability exists in the delete function of DuckDBVectorStore in run-llama/llama\_index version v0.12.19

- Database: PyPA
- Published: 2025-06-02
- Modified: 2026-10-15

## Tracked as

- [CVE-2025-1750](https://cve.now/CVE-2025-1750.md): SQL Injection in run-llama/llama\_index

## Also published as

- [GHSA-6MCC-Q3MG-3QG6](https://cve.now/GHSA-6MCC-Q3MG-3QG6.md) (GitHub)
- [PYSEC-2026-4242](https://cve.now/PYSEC-2026-4242.md) (PyPA)

## Affected versions

- llama-index (PyPI): from 0.12.19, fixed in 0.12.21

## Description

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

- https://github.com/run-llama/llama_index/commit/369a2942df2efcf6b74461c45d20a0af1fbe4ae2
- https://huntr.com/bounties/e1302233-9180-4269-9047-1526247d2cd8

Page: https://cve.now/PYSEC-2025-245

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
