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 a
CVE-2025-51458 is a medium-severity flaw (CVSS 6.5) affecting db-gpt. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- Public exploit reference
- Remotely exploitable, no login, no user action
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 6.5 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | None |
| EPSS exploit chance | 0.4% (top 70%) |
| CISA exploited list | No |
| Weakness | CWE-89 |
| Published | 2025-07-22 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2025-51458?
db-gpt: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2025-51458 being exploited?
CVE-2025-51458 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2025-51458 affect?
CVE-2025-51458 affects db-gpt. Severity is medium (CVSS 6.5). 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
How urgent is CVE-2025-51458?
Priority 40/100. Public exploit reference; Remotely exploitable, no login, no user action
Related CVEs
- CVE-2025-6772 HIGH 7.3 UPGRADE A vulnerability was found in eosphoros-ai db-gpt up to 0.7.2
- CVE-2025-51459 MEDIUM 6.5 DOWNGRADE File Upload vulnerability in agent.hub.controller.refresh_plugins in eosphoros-ai DB-GPT 0.7.0 allows remote a
- CVE-2025-0452 HIGH 8.2 DOWNGRADE eosphoros-ai/DB-GPT version latest is vulnerable to arbitrary file deletion on Windows systems via the '/v1/ag
- CVE-2024-10906 HIGH 8.1 DOWNGRADE In version 0.6.0 of eosphoros-ai/db-gpt, the `uvicorn` app created by `dbgpt_server` uses an overly permissive
- CVE-2024-10902 CRITICAL 9.8 DOWNGRADE In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /v1/personal/agent/upload` is vulnerable to Arbitrary