9.1critical
Arbitrary File Write via SQL Injection in eosphoros-ai/db-gpt
- Severity
- 9.1critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 1.17% (higher than 68% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-qccg-9m4q-xfm6PYSEC-2026-325
Description
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).
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| eosphoros-ai eosphoros-ai/db-gpt | from unspecified up to latest | CVE List |
| dbgpt (PyPI) | before 0.7.1 | GitHub Advisory Database, PyPA Advisory Database |
| dbgpt db-gpt | 0.6.0 | NVD |
All scores
| @huntr_ai | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| PyPA Advisory Database | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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).
NVD (es)
En la versión v0.6.0 de eosphoros-ai/db-gpt, la API web `POST /api/v1/editor/sql/run` permite la ejecución de consultas SQL arbitrarias sin control de acceso. Esta vulnerabilidad puede ser explotada por atacantes para realizar escrituras arbitrarias de archivos mediante DuckDB SQL, lo que les permite escribir archivos arbitrarios en el sistema de archivos de la víctima. Esto puede provocar la ejecución remota de código (RCE).
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-10835 changed 2025-03-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qccg-9m4q-xfm6 changed 2026-10-27 | CC-BY-4.0 |
| NVD | CVE-2024-10835 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-325 changed 2026-07-01 | CC-BY-4.0 |