Skip to main content
VulnerabilityPublished

CVE-2025-51458: DB-GPT · SQL Injection

Affects DB-GPTSource CVE Database V5

0

Not known to be exploited · CVSS 6.5 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
6.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.3% chance of exploitation in 30 days – higher than 30% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
GitHubeosphoros-ai/DB-GPTpkg:github/eosphoros-ai/DB-GPTOther threatsAffected
  • =0.7.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Immediate mitigation steps include restricting access to the vulnerable API endpoints (/v1/editor/sql/run and /v1/editor/chart/run) through network-level controls such as firewalls or API gateways to limit exposure to trusted users only. Implementing strict input validation and sanitization on all user-supplied data before it reaches the database query execution layer is critical. Employing parameterized queries or prepared statements in the codebase can prevent SQL Injection by separating code from data. Organizations should monitor logs for suspicious query patterns indicative of injection attempts. Until an official patch is released, consider disabling or isolating the vulnerable DB-GPT components if feasible. Additionally, conducting a thorough security review of all AI-driven database interfaces and applying the principle of least privilege to database accounts used by these services will reduce potential damage. Finally, organizations should stay updated with vendor advisories for patches and apply them promptly once available.

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.

References

Community reviews

Loading reviews…