Vulnerability · Published Jun 2, 2025 · Assigned by @huntr_ai

CVE-2025-1750SQL Injection in run-llama/llama_index

Critical 9.8

In plain English

A critical-severity SQL injection in run-llama/llama_index from run-llama. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 59% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.8Critical
Exploit odds (30 days)0.9%top 40.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIllama-index0.12.21PYSEC-2025-245
PyPIllama-index-vector-stores-duckdb0.12.21GHSA-6mcc-q3mg-3qg6
PyPIllama-index-vector-stores-duckdb0.12.21PYSEC-2026-4242

Affected products (as reported)

VendorProductVersions
run-llama run-llama/llama_index unspecified – before 0.3.1

Weakness: CWE-89 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References