CVE-2025-51458 SQL injection in n/a
Remote attackers can execute arbitrary SQL statements via crafted input in DB-GPT endpoints, potentially reading or modifying database contents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2025-51458?
CVE-2025-51458 is a medium-severity SQL injection vulnerability in n/a, published on 22 Jul 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-89
Which versions are affected by CVE-2025-51458?
It affects 1 product.
Products include Dbgpt Db-Gpt.
How do I fix CVE-2025-51458?
No fix has been published for CVE-2025-51458 yet. Limit exposure of the affected software until one is available.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2025-51458 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-51458 exists.
Public exploit code: 1 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2024-10831 Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt
- CVE-2024-10833 Arbitrary File Write in eosphoros-ai/db-gpt
- CVE-2024-10834 Arbitrary File Write in eosphoros-ai/db-gpt
- CVE-2024-10835 Arbitrary File Write via SQL Injection in eosphoros-ai/db-gpt
- CVE-2024-10901 Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt
Sources
Also known as GHSA-h84f-c595-gx2v.