CVE-2025-51458
MEDIUMDB-GPT 0.7.0 - SQL Injection via /v1/editor/sql/run or /v1/editor/chart/run Endpoints
Title source: llmExploitation Summary
EIP tracks 1 public exploit for CVE-2025-51458. PoCs published by q1uf3ng.
AI-analyzed exploit summary This repository contains a functional exploit for CVE-2025-51458, a pre-auth SQL injection vulnerability in DB-GPT <= 0.7.0. The exploit targets the `/api/v1/editor/sql/run` and `/api/v1/editor/chart/run` endpoints, which accept arbitrary SQL without authentication. The provided Python script demonstrates the vulnerability by executing custom SQL queries, dumping database schemas, and bypassing the DuckDB blacklist via comment obfuscation.
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.
Exploits (1)
This repository contains a functional exploit for CVE-2025-51458, a pre-auth SQL injection vulnerability in DB-GPT <= 0.7.0. The exploit targets the `/api/v1/editor/sql/run` and `/api/v1/editor/chart/run` endpoints, which accept arbitrary SQL without authentication. The provided Python script demonstrates the vulnerability by executing custom SQL queries, dumping database schemas, and bypassing the DuckDB blacklist via comment obfuscation.
References (2)
Scores
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N