# CVE-2025-51458: SQL Injection in editorsqlrun and queryex in eosphoros-ai DB-GPT 0.7.0 allows remote attackers to execute arbitrary SQL statements via craf…

- Severity: Medium 6.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 32% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2025-07-22T00:00:00.000Z
- Modified: 2026-06-17T09:35:36.150Z
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- dbgpt db-gpt: 0.7.0

## References

- <https://github.com/eosphoros-ai/DB-GPT/pull/2650> (exploit, issue-tracking)
- <https://www.gecko.security/blog/cve-2025-51458> (exploit, vendor-advisory)

## Sources

- CVE List: [CVE-2025-51458](https://www.cve.org/CVERecord?id=CVE-2025-51458), CVE Terms of Use, modified 2025-07-22
- NVD: [CVE-2025-51458](https://nvd.nist.gov/vuln/detail/CVE-2025-51458), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-51458 · Whole record: https://cve.day/CVE-2025-51458.json · Rebuilt by cve.day 2026-11-25T22:59:01.581Z
