Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai

CVE-2024-10835Arbitrary File Write via SQL Injection in eosphoros-ai/db-gpt

Critical 9.1

In plain English

A critical-severity SQL injection in eosphoros-ai/db-gpt from eosphoros-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 68% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.0)9.1Critical
Exploit odds (30 days)1.2%top 32.1% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /api/v1/editor/sql/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write using DuckDB SQL, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE).

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIdbgpt0.7.1GHSA-qccg-9m4q-xfm6
PyPIdbgpt0.7.1PYSEC-2026-325

Affected products (as reported)

VendorProductVersions
eosphoros-ai eosphoros-ai/db-gpt unspecified – through latest

Weakness: CWE-89 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

References