# DB-GPT is vulnerable to SQL Injection attacks from unauthenticated users

Advisory record · `GHSA-qccg-9m4q-xfm6`

- **Identifiers:** `GHSA-qccg-9m4q-xfm6` · `CVE-2024-10835` · `PYSEC-2026-325`
- **State:** Confirmed
- **Severity:** CVSS 9.1 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 20 Mar 2025
- **Updated:** 27 Oct 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 20 Mar 2025, 12:32 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 9.1: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `dbgpt` (PyPI): affected `<0.7.1`; fixed in `0.7.1`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> The PyPI package dbgpt is vulnerable in versions before 0.7.1, where the web API endpoint for running SQL in the editor allows arbitrary SQL queries without any access control. An unauthenticated attacker who can reach the API could use DuckDB SQL to write arbitrary files to the server's file system, which could potentially lead to remote code execution. Upgrade dbgpt to version 0.7.1 or later, which is the fixed version listed.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 9.1 Critical, CVSS 3.0: `CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`, from CNA (@huntr_ai)

- **CISA KEV:** Not listed.
- **EPSS:** 0.012, the 68th percentile, on 18 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:07 UTC: First seen by agentprime
- 31 Oct 2026, 14:07 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-qccg-9m4q-xfm6)

## Sources

- [GitHub Advisory Database: GHSA-qccg-9m4q-xfm6](https://github.com/advisories/GHSA-qccg-9m4q-xfm6)
- [OSV: GHSA-qccg-9m4q-xfm6](https://osv.dev/vulnerability/GHSA-qccg-9m4q-xfm6)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-10835>
- <https://github.com/eosphoros-ai/DB-GPT/pull/2650>
- <https://github.com/eosphoros-ai/DB-GPT>
- <https://github.com/eosphoros-ai/DB-GPT/releases/tag/v0.7.1>
- <https://github.com/pypa/advisory-database/tree/main/vulns/dbgpt/PYSEC-2026-325.yaml>
- <https://huntr.com/bounties/e32fda74-ca83-431c-8de8-08274ba686c9>
- <https://pypi.org/project/dbgpt>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-qccg-9m4q-xfm6>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-qccg-9m4q-xfm6/>. Everything for agents: <https://agentprime.io/llms.txt>.
