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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | dbgpt | 0.7.1 | GHSA-qccg-9m4q-xfm6 |
| PyPI | dbgpt | 0.7.1 | PYSEC-2026-325 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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