DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users
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 software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | dbgpt | < 0.7.1 | 0.7.1 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-10835
- https://github.com/eosphoros-ai/DB-GPT/pull/2650
- https://github.com/eosphoros-ai/DB-GPT
- https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.7.1
- https://huntr.com/bounties/e32fda74-ca83-431c-8de8-08274ba686c9
- https://pypi.org/project/dbgpt
- https://github.com/advisories/GHSA-qccg-9m4q-xfm6
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H- Weakness (CWE)
CWE-89- Platform
- Python (PyPI)
- Package
dbgpt- Disclosed
- 20.03.2025
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-qccg-9m4q-xfm6 - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2026-325 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: dbgpt
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 03.2025 03.2025
- Without a fix
- 6
- Exploited in attacks
- 0
Severity breakdown
- Critical 5
- High 3
Disclosures per year
- 2025: 8
- 2026: 0
-
DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.