Vulnerabilities in pkg:pypi/dbgpt
PACKAGECVE-2024-10835 is a CRITICAL (CVSS 9.1) sql injection vulnerability (CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')) affecting Dbgpt libraries in the PyPI ecosystem. The issue involves db-gpt is vulnerable to sql injection attacks from unauthenticated users. Remediation is available by upgrading affected packages to version 0.7.1.
pkg:pypi/dbgpt
Vulnerability advisories affecting package pkg:pypi/dbgpt. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qccg-9m4q-xfm6 | CVE-2024-10835 | CRITICAL | DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users |
| GHSA-j9g7-mqhh-9hxf | CVE-2024-10833 | CRITICAL | DB-GPT Absolute Path Traversal in knowledge/{space_name}/document/upload |
| GHSA-8pwp-phcg-h36g | CVE-2024-10830 | HIGH | DB-GPT Path Traversal vulnerability |
| GHSA-6xgj-c5fx-5v57 | CVE-2024-10829 | HIGH | DB-GPT Uncontrolled Resource Consumption vulnerability |
| GHSA-3248-f932-c76p | CVE-2024-10906 | HIGH | DB-GPT vulnerable to Cross-Site Request Forgery |
| GHSA-3xq5-x4fj-rff7 | CVE-2024-10902 | CRITICAL | DB-GPT vulnerable to Arbitrary File Upload with Path Traversal |
| GHSA-hhw5-29f6-hf4x | CVE-2024-10831 | CRITICAL | DB-GPT Absolute Path Traversal vulnerability |
| GHSA-7gj6-22m4-qfhx | CVE-2024-10901 | CRITICAL | DB-GPT Arbitrary File Write vulnerability |
CVE-2024-10835 at a Glance
Security Impact
CVSS: 9.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H).
How to Fix CVE-2024-10835
To remediate this vulnerability, upgrade all affected Dbgpt dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install dbgpt>=0.7.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show dbgpt
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2024-10835, inspect your installed packages using pip:
pip show dbgpt
Analyze the terminal output to locate any version of Dbgpt in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.7.1), your application is affected.
Note: The pip show dbgpt command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection'), where the product constructs all or part of an sql command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended sql command when it is sent to a downstream component. without sufficient removal or quoting of sql syntax in user-controllable inputs, the generated sql query can cause those inputs to be interpreted as sql instead of ordinary user data. In Dbgpt, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-10835 Affected Dbgpt Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
dbgpt
|
PyPI |
< 0.7.1
|
0.7.1
|
References
Frequently Asked Questions
What is CVE-2024-10835?
Which Dbgpt versions are affected?
What version fixes CVE-2024-10835?
Is dbgpt affected?
What is the CVSS score of CVE-2024-10835?
What CWE is associated with CVE-2024-10835?
How can I check PyPI dependencies for CVE-2024-10835?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qccg-9m4q-xfm6",
"modified" : "2025-07-17T21:03:45Z",
"published" : "2025-03-20T12:32:40Z",
"aliases" : [ "CVE-2024-10835" ],
"summary" : "DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users",
"details" : "In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /api/v1/editor/sql/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write using DuckDB SQL, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE).",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "dbgpt"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.7.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-10835"
}, {
"type" : "WEB",
"url" : "https://github.com/eosphoros-ai/DB-GPT/pull/2650"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/eosphoros-ai/DB-GPT"
}, {
"type" : "WEB",
"url" : "https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.7.1"
}, {
"type" : "WEB",
"url" : "https://huntr.com/bounties/e32fda74-ca83-431c-8de8-08274ba686c9"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-89" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-17T21:03:45Z",
"nvd_published_at" : "2025-03-20T10:15:20Z"
}
}