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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2024-10835

CVE-2024-10835: DB-GPT SQL Injection Vulnerability

CVE-2024-10835 is a SQL injection flaw in DB-GPT v0.6.0 that allows attackers to execute arbitrary SQL queries without access control, potentially leading to file writes and RCE. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: April 8, 2026

CVE-2024-10835 Overview

CVE-2024-10835 is a critical SQL Injection vulnerability affecting eosphoros-ai/db-gpt version v0.6.0. The web API endpoint POST /api/v1/editor/sql/run allows execution of arbitrary SQL queries without any access control mechanisms. This vulnerability can be exploited by attackers to perform Arbitrary File Write operations using DuckDB SQL capabilities, enabling them to write arbitrary files to the victim's file system. The ability to write files to arbitrary locations on the system can potentially lead to Remote Code Execution (RCE).

Critical Impact

Unauthenticated attackers can execute arbitrary SQL queries, write files anywhere on the file system, and potentially achieve full Remote Code Execution on vulnerable DB-GPT instances.

Affected Products

  • dbgpt db-gpt version 0.6.0
  • Installations exposing the /api/v1/editor/sql/run endpoint without additional access controls
  • Systems running DuckDB as the underlying database engine

Discovery Timeline

  • 2025-03-20 - CVE-2024-10835 published to NVD
  • 2025-07-17 - Last updated in NVD database

Technical Details for CVE-2024-10835

Vulnerability Analysis

The vulnerability exists in DB-GPT's SQL editor API endpoint which fails to implement proper access control or input validation. The POST /api/v1/editor/sql/run endpoint accepts SQL queries and executes them directly without authenticating the requesting user or sanitizing the input. This design flaw allows any attacker with network access to the API to submit and execute arbitrary SQL commands.

The vulnerability is particularly severe because DB-GPT utilizes DuckDB as its database engine. DuckDB includes powerful SQL functions that can interact with the file system, including the ability to write data to arbitrary file paths. By crafting malicious SQL queries, attackers can leverage these file system capabilities to write arbitrary content to any location accessible by the DB-GPT process.

Root Cause

The root cause is a combination of two security failures:

  1. Missing Access Control (CWE-89): The /api/v1/editor/sql/run endpoint lacks authentication and authorization checks, allowing unauthenticated requests to reach the SQL execution logic.

  2. Unrestricted SQL Execution: The application does not restrict which SQL commands can be executed, allowing dangerous file system operations through DuckDB's native SQL functions.

These combined weaknesses create a direct path from unauthenticated network access to arbitrary file system writes and potential code execution.

Attack Vector

The attack is executed over the network without requiring any prior authentication or user interaction. An attacker can send crafted HTTP POST requests to the vulnerable API endpoint containing malicious SQL payloads. The attack flow involves:

  1. The attacker identifies a DB-GPT instance with the exposed /api/v1/editor/sql/run endpoint
  2. A malicious SQL query is crafted using DuckDB's file writing capabilities
  3. The payload is sent via HTTP POST to the vulnerable endpoint
  4. The SQL is executed without validation, writing attacker-controlled content to the file system
  5. By writing to specific locations (such as cron directories, web roots, or startup scripts), the attacker can achieve code execution

The vulnerability requires no privileges, no user interaction, and can be exploited remotely, making it highly accessible to attackers. For additional technical details, refer to the Huntr Bounty Report.

Detection Methods for CVE-2024-10835

Indicators of Compromise

  • Unexpected HTTP POST requests to /api/v1/editor/sql/run from external or unauthorized IP addresses
  • SQL queries containing file system operations such as COPY, EXPORT, or file path references
  • New or modified files in sensitive directories that were not created by legitimate processes
  • Cron jobs, startup scripts, or web shells appearing unexpectedly on the system

Detection Strategies

  • Implement web application firewall (WAF) rules to detect and block SQL injection patterns targeting the /api/v1/editor/sql/run endpoint
  • Monitor HTTP access logs for unauthenticated POST requests to the vulnerable API endpoint
  • Deploy file integrity monitoring (FIM) to detect unauthorized file writes in critical system directories
  • Use behavioral analysis to identify anomalous SQL query patterns, particularly those involving file operations

Monitoring Recommendations

  • Enable detailed logging for all API requests to the DB-GPT application, including request bodies
  • Configure alerts for any SQL queries containing DuckDB file operation commands
  • Monitor for process execution originating from newly created files in writable directories
  • Implement network segmentation to limit exposure of the DB-GPT API to trusted networks only

How to Mitigate CVE-2024-10835

Immediate Actions Required

  • Restrict network access to the /api/v1/editor/sql/run endpoint using firewall rules or network segmentation
  • Implement authentication and authorization controls in front of the vulnerable endpoint using a reverse proxy or API gateway
  • Audit file system permissions to ensure the DB-GPT process runs with minimal required privileges
  • Review system logs for any evidence of exploitation attempts

Patch Information

At the time of this publication, users should check the DB-GPT GitHub repository for security updates addressing this vulnerability. Monitor the project for security releases beyond version 0.6.0 that implement proper access controls on the SQL editor endpoint.

Workarounds

  • Deploy a reverse proxy (such as nginx or Apache) with authentication requirements in front of the DB-GPT application
  • Use network-level controls to ensure the API is only accessible from trusted internal networks
  • Disable or remove the SQL editor functionality entirely if it is not required for your use case
  • Run the DB-GPT service in a containerized environment with read-only file system mounts where possible
bash
# Example: Nginx configuration to add basic authentication to the API endpoint
location /api/v1/editor/sql/run {
    auth_basic "Restricted Access";
    auth_basic_user_file /etc/nginx/.htpasswd;
    proxy_pass http://localhost:5000;
}

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechDbgpt

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/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 Report
  • Related CVEs
  • CVE-2024-10833: DB-GPT Path Traversal Vulnerability

  • CVE-2024-10834: DB-GPT Path Traversal Vulnerability

  • CVE-2024-10831: Dbgpt Db-gpt Path Traversal Vulnerability
Default Legacy - Prefooter | 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