The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-1750

CVE-2025-1750: Llamaindex DuckDBVectorStore SQLi Vulnerability

CVE-2025-1750 is an SQL injection flaw in Llamaindex DuckDBVectorStore that enables attackers to read and write arbitrary files, potentially leading to RCE. This article covers technical details, affected versions, and mitigation.

Published: April 1, 2026

CVE-2025-1750 Overview

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). The vulnerability stems from improper input sanitization in SQL queries within the DuckDB vector store integration, a critical component used in AI/LLM applications for vector similarity search.

Critical Impact

Attackers can exploit this SQL injection flaw to read sensitive files, write arbitrary data to the server, and potentially achieve remote code execution through file system manipulation.

Affected Products

  • LlamaIndex version v0.12.19
  • llama-index-vector-stores-duckdb integration package
  • Applications using DuckDBVectorStore with user-controlled ref_doc_id inputs

Discovery Timeline

  • 2025-06-02 - CVE CVE-2025-1750 published to NVD
  • 2025-07-31 - Last updated in NVD database

Technical Details for CVE-2025-1750

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) resides in the delete function of the DuckDBVectorStore class within the LlamaIndex framework. The vulnerability occurs because user-supplied input through the ref_doc_id parameter is directly interpolated into SQL queries without proper sanitization or parameterization.

DuckDB, being an embedded analytical database, provides powerful file I/O capabilities that can be abused when SQL injection is possible. An attacker exploiting this vulnerability can leverage DuckDB's native functions to read arbitrary files from the server's file system and write malicious content to accessible directories. This capability chain transforms a SQL injection into a potential remote code execution scenario, particularly dangerous in server environments where the application has elevated file system permissions.

Root Cause

The root cause of this vulnerability is the direct string interpolation of the ref_doc_id parameter into SQL DELETE statements without using parameterized queries or proper input escaping. The vulnerable code path allows untrusted user input to modify the structure and intent of the SQL query being executed against the DuckDB database, breaking the boundary between code and data.

Attack Vector

This vulnerability is exploitable over the network without authentication or user interaction. An attacker can craft malicious ref_doc_id values containing SQL injection payloads that escape the intended query context. By leveraging DuckDB's file handling functions (such as read_csv, COPY TO, or similar), the attacker can:

  1. Extract sensitive configuration files, credentials, or application data
  2. Write malicious content to web-accessible directories or configuration files
  3. Chain file write capabilities with other server-side functionality to achieve code execution

The patch addresses this by escaping parameters in SQL queries within the DuckDB vector store, as shown in the security fix:

text
 disallow_untyped_defs = true
 exclude = ["_static", "build", "examples", "notebooks", "venv"]
 ignore_missing_imports = true
-python_version = "3.8"
+python_version = "3.9"

[tool.poetry]
authors = ["Adithya Krishnan <me@krishadi.com>"]

Source: GitHub Commit Reference

Detection Methods for CVE-2025-1750

Indicators of Compromise

  • Unusual SQL query patterns in application logs containing file path references or DuckDB file functions
  • Unexpected file read/write operations originating from the LlamaIndex application process
  • Web server logs showing ref_doc_id parameters with SQL metacharacters such as single quotes, semicolons, or UNION keywords
  • New or modified files in application directories that were not created through normal operations

Detection Strategies

  • Implement application-layer SQL injection detection rules that monitor for injection patterns in vector store operations
  • Deploy Web Application Firewall (WAF) rules to block requests containing SQL injection signatures in API parameters
  • Enable detailed query logging in DuckDB to capture and analyze all executed SQL statements for anomalous patterns
  • Monitor file system access from the LlamaIndex application process for unexpected file operations

Monitoring Recommendations

  • Configure alerting for any file I/O operations performed by the DuckDB process outside of expected data directories
  • Establish baseline behavior for the delete function and alert on deviations in query structure or execution time
  • Implement log aggregation to correlate suspicious API requests with downstream database and file system activity
  • Deploy runtime application self-protection (RASP) to detect and block SQL injection attempts in real-time

How to Mitigate CVE-2025-1750

Immediate Actions Required

  • Upgrade LlamaIndex to a patched version that includes commit 369a2942df2efcf6b74461c45d20a0af1fbe4ae2
  • Audit all code paths that pass user input to DuckDBVectorStore.delete() and implement input validation
  • Review application logs for evidence of exploitation attempts or successful attacks
  • Restrict file system permissions for the application process to limit potential damage from file write attacks

Patch Information

The LlamaIndex maintainers have released a security fix that properly escapes parameters in SQL queries within the DuckDB vector store integration. The fix is available in commit 369a2942df2efcf6b74461c45d20a0af1fbe4ae2. Organizations should update their llama-index-vector-stores-duckdb package to the latest version containing this fix. Additional details about the vulnerability can be found in the Huntr Bounty Details.

Workarounds

  • Implement strict input validation on the ref_doc_id parameter to allow only alphanumeric characters and expected delimiters
  • Deploy a reverse proxy or WAF that sanitizes incoming requests before they reach the LlamaIndex application
  • Run the application in a sandboxed environment with minimal file system access permissions
  • Consider disabling the delete functionality temporarily if it is not critical to operations until patching is complete
bash
# Example: Update llama-index-vector-stores-duckdb to the latest patched version
pip install --upgrade llama-index-vector-stores-duckdb

# Verify the installed version contains the security fix
pip show llama-index-vector-stores-duckdb

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechLlamaindex

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.68%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-89
  • Technical References
  • Huntr Bounty Details
  • Vendor Resources
  • GitHub Commit Reference
  • Related CVEs
  • CVE-2025-1793: Llamaindex SQL Injection Vulnerability

  • CVE-2025-1753: Llamaindex CLI RCE Vulnerability

  • CVE-2025-3108: Llamaindex Deserialization RCE Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English