SQL Injection Affecting llama-index-vector-stores-duckdb package, versions [,0.3.1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.38% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-LLAMAINDEXVECTORSTORESDUCKDB-10658537
  • published9 Jul 2025
  • disclosed2 Jun 2025
  • creditChiencp

Introduced: 2 Jun 2025

CVE-2025-1750  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade llama-index-vector-stores-duckdb to version 0.3.1 or higher.

Overview

llama-index-vector-stores-duckdb is a llama-index vector_stores duckdb integration

Affected versions of this package are vulnerable to SQL Injection through the DuckDBVectorStore class. An attacker can manipulate the ref_doc_id parameter, enabling them to read and write arbitrary files on the server, potentially leading to unauthorized data access and system control by injecting malicious SQL commands.

References

CVSS Base Scores

version 4.0
version 3.1