SQL Injection in Dbgpt Db-Gpt
CVE-2025-51458
SQL Injection in editor_sql_run and query_ex in eosphoros-ai DB-GPT 0.7.0 allows remote attackers to execute arbitrary SQL statements via crafted input passed to the /v1/editor/sql/run or /v1/editor/chart/run endpoints, interacting with api_editor_v1.editor_sql_run, editor_chart_run, and datasource.rdbms.base.query_ex.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N.
EPSS exploit prediction
EPSS 0.004, 31.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Dbgpt Db-Gpt — versions 0.7.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- q1uf3ng/CVE-2025-51458-exp (last pushed 2026-04-15): CVE-2025-51458 - DB-GPT Pre-Auth SQL Injection PoC
References
- github.com/eosphoros-ai/DB-GPT/pull/2650 (Exploit, Issue Tracking)
- www.gecko.security/blog/cve-2025-51458 (Exploit, Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.