Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2025-51458
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 15:49 UTC · Revision 1
Source evidence
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.
osv:CVE-2025-51458
Complete source record
{
"id": "c7f60164872bdcccfeb0598613d8369c86cd35ff2ab3653d2b86d8dea567f108",
"url": "https://osv.dev/vulnerability/CVE-2025-51458",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2025-51458",
"summary": "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.",
"evidence": "osv:CVE-2025-51458",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2025-51458",
"aliases": [
"CVE-2025-51458"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/eosphoros-ai/db-gpt",
"type": "GIT",
"events": [
{
"introduced": "59771a09f33f28c585e30f9a099ab0c13e681f98"
},
{
"last_affected": "59771a09f33f28c585e30f9a099ab0c13e681f98"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:dbgpt:db-gpt:0.7.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0.7.0"
},
{
"last_affected": "0.7.0"
}
],
"source": "CPE_STRING"
}
]
}
}
],
"versions": [
"0.7.0",
"v0.7.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-51458.json"
}
}
],
"modified": "2026-10-28T02:30:30.325394562Z",
"provider": "osv",
"references": [
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51458.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-51458",
"https://github.com/eosphoros-ai/DB-GPT/pull/2650",
"https://www.gecko.security/blog/cve-2025-51458"
],
"provider_metadata": {
"cna_assigner": "mitre",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/51xxx/CVE-2025-51458.json"
}
},
"related_cves": [
{
"value": "CVE-2025-51458",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 497000,
"published_at": "2025-07-22T00:00:00+00:00"
}