SecurityContext

CVE-2025-51458: eosphoros-ai DB-GPT - SQL Injection

  • Cve: CVE-2025-51458
  • Name: eosphoros-ai DB-GPT - SQL Injection
  • 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.
  • Impact: Remote attackers can execute arbitrary SQL commands, potentially leading to data theft or database compromise.
  • Remediation: Update to the latest version.
  • Vulnerability type: sql_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 6.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N
  • Epss score: 0.00367
  • Epss percentile: 0.3094
  • Assignee: [email protected]
  • Published at: 2025-07-22T20:15:25Z
  • Age in days: 490
  • Modified at: 2026-06-17T09:35:36Z
  • Public exploits total: 3
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-51458
  • Nvd status: analyzed
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

Public exploits

UrlSourceAdded date
https://github.com/eosphoros-ai/DB-GPT/pull/2650nvd2025-07-22
https://www.gecko.security/blog/cve-2025-51458nvd2025-07-22
https://github.com/q1uf3ng/CVE-2025-51458-exppoc-in-github2026-04-15

References

UrlSourceTags
https://www.gecko.security/blog/cve-2025-51458nvdExploit, Vendor Advisory
https://github.com/eosphoros-ai/DB-GPT/pull/2650nvdExploit, Issue Tracking

Products

ProductAffectedPlatform boundSourcesUrl
dbgpt:db-gpt= 0.7.0nonvd/v1/products/dbgpt/db-gpt

Projects

RepositoryLink kindsIndexedUrl
eosphoros-ai/DB-GPTfix, pullyes/v1/repositories/eosphoros-ai/DB-GPT

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 3
  • Public exploit first date: 2025-07-22
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts