SQL Injection Affecting dbgpt package, versions [,0.7.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.45% (63rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about SQL Injection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-DBGPT-10847879
  • published20 Jul 2025
  • disclosed20 Mar 2025
  • creditUnknown

Introduced: 20 Mar 2025

CVE-2024-10835  (opens in a new tab)
CWE-89  (opens in a new tab)

How to fix?

Upgrade dbgpt to version 0.7.1 or higher.

Overview

dbgpt is a DB-GPT is an experimental open-source project that uses localized GPT large models to interact with your data and environment. With this solution, you can beassured that there is no risk of data leakage, and your data is 100% private and secure.

Affected versions of this package are vulnerable to SQL Injection via the POST /api/v1/editor/sql/run endpoint, which permits execution of arbitrary SQL queries without access control. An attacker can write arbitrary files to the file system and potentially execute remote code by sending crafted SQL statements.

CVSS Base Scores

version 4.0
version 3.1