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-10901

CVE-2024-10901: Dbgpt Db-gpt RCE Vulnerability

CVE-2024-10901 is a remote code execution flaw in Dbgpt Db-gpt v0.6.0 that allows attackers to execute arbitrary SQL and write malicious files. This article covers the technical details, affected versions, and mitigation.

Published: April 8, 2026

CVE-2024-10901 Overview

A critical vulnerability exists in eosphoros-ai/db-gpt version v0.6.0 that allows unauthenticated attackers to execute arbitrary SQL queries through the web API endpoint POST /api/v1/editor/chart/run. This SQL Injection vulnerability lacks any access control mechanisms, enabling attackers to perform Arbitrary File Write operations on the victim's file system. The attack chain can escalate to Remote Code Execution (RCE) by writing malicious files such as __init__.py into Python's /site-packages/ directory.

Critical Impact

Unauthenticated attackers can achieve Remote Code Execution by exploiting arbitrary SQL execution to write malicious Python files to the system, potentially compromising the entire server infrastructure.

Affected Products

  • DB-GPT version 0.6.0
  • eosphoros-ai/db-gpt v0.6.0
  • Systems running DB-GPT with exposed API endpoints

Discovery Timeline

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

Technical Details for CVE-2024-10901

Vulnerability Analysis

This vulnerability stems from a complete lack of authentication and authorization controls on the /api/v1/editor/chart/run API endpoint. The endpoint accepts and executes arbitrary SQL queries directly without validating user credentials or permissions. This design flaw allows any network-accessible attacker to interact with the underlying database with full privileges.

The exploitation chain involves leveraging SQL functionality (such as SELECT INTO OUTFILE in MySQL or COPY TO in PostgreSQL) to write arbitrary content to the file system. Attackers can weaponize this capability to inject malicious Python code into system directories where Python will automatically execute them, such as the __init__.py file in /site-packages/ directories.

The vulnerability is classified under CWE-434 (Unrestricted Upload of File with Dangerous Type), though the core issue is a combination of missing authentication (CWE-306) and SQL Injection leading to arbitrary file write.

Root Cause

The root cause is the absence of authentication and access control mechanisms on the chart editor API endpoint. The POST /api/v1/editor/chart/run endpoint was implemented without any security controls, allowing any HTTP client to submit SQL queries for execution. Additionally, the database connection appears to have sufficient privileges to write files to the file system, which compounds the severity of the issue.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability remotely by sending a crafted HTTP POST request to the vulnerable endpoint. The attack flow proceeds as follows:

  1. Attacker identifies a DB-GPT instance with the exposed API endpoint
  2. Attacker sends a POST request to /api/v1/editor/chart/run with malicious SQL
  3. The SQL query uses database-specific file write functions to create a malicious Python file
  4. The file is written to Python's /site-packages/ directory as __init__.py or similar
  5. Upon the next Python import or application restart, the malicious code executes

The attacker can craft SQL statements that leverage database-specific file write capabilities such as SELECT ... INTO OUTFILE for MySQL or COPY ... TO for PostgreSQL to place arbitrary content on the file system. By targeting Python's package directories, the attacker ensures code execution occurs when the application or system loads Python modules.

Detection Methods for CVE-2024-10901

Indicators of Compromise

  • Unexpected HTTP POST requests to /api/v1/editor/chart/run from external or unauthorized sources
  • SQL queries containing file write operations (INTO OUTFILE, COPY TO, INTO DUMPFILE)
  • New or modified __init__.py files in Python's /site-packages/ directories
  • Unexpected files appearing in web-accessible or system directories
  • Database logs showing queries with file system paths or Python code patterns

Detection Strategies

  • Monitor web server logs for POST requests to /api/v1/editor/chart/run endpoints, especially from unauthenticated sessions
  • Implement database audit logging to capture all SQL queries containing file write keywords
  • Deploy file integrity monitoring (FIM) on Python installation directories and critical system paths
  • Use network intrusion detection signatures to identify SQL injection patterns in HTTP traffic

Monitoring Recommendations

  • Enable detailed logging on the DB-GPT application and underlying database server
  • Configure SIEM rules to alert on SQL queries containing OUTFILE, DUMPFILE, or COPY TO statements
  • Monitor for changes to Python site-packages directories using endpoint detection tools
  • Implement network segmentation to restrict access to DB-GPT API endpoints from untrusted networks

How to Mitigate CVE-2024-10901

Immediate Actions Required

  • Restrict network access to DB-GPT instances by implementing firewall rules or network segmentation
  • Disable or remove the /api/v1/editor/chart/run endpoint if not required for operations
  • Implement authentication and authorization controls in front of the API using a reverse proxy or API gateway
  • Revoke database file write privileges (FILE privilege in MySQL, or similar in other databases)
  • Review file system for any unauthorized modifications in Python directories

Patch Information

As of the last NVD update on 2025-07-17, users should consult the Huntr Bug Bounty Report for the latest remediation guidance and check the official DB-GPT repository for updated versions that address this vulnerability. Upgrade to a patched version when available.

Workarounds

  • Deploy an authentication layer (e.g., OAuth, API keys) in front of all DB-GPT API endpoints using a reverse proxy
  • Restrict the database user's privileges to prevent file system write operations
  • Implement network-level access controls to limit API access to trusted sources only
  • Run DB-GPT in a containerized environment with read-only file systems where possible
  • Consider disabling the chart editor functionality entirely until a patch is available
bash
# Example: Restrict database FILE privilege in MySQL
# Connect to MySQL as root and revoke FILE privilege from the DB-GPT user
mysql -u root -p -e "REVOKE FILE ON *.* FROM 'dbgpt_user'@'%'; FLUSH PRIVILEGES;"

# Example: Use iptables to restrict access to DB-GPT API port (adjust port as needed)
iptables -A INPUT -p tcp --dport 5000 -s 10.0.0.0/8 -j ACCEPT
iptables -A INPUT -p tcp --dport 5000 -j DROP

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechDb Gpt

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability1.06%

  • 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-434
  • Technical References
  • Huntr Bug Bounty Report
  • Related CVEs
  • CVE-2024-10902: 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