CVE-2024-10835
JSON

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 packageVersionsReported by
eosphoros-ai eosphoros-ai/db-gptfrom unspecified up to latestCVE List
dbgpt (PyPI)before 0.7.1GitHub Advisory Database, PyPA Advisory Database
dbgpt db-gpt0.6.0NVD

All scores

@huntr_ai9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
PyPA Advisory Database9.1critical CVSS:3.0CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-89

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

SourceRecordLicence
CVE ListCVE-2024-10835 changed 2025-03-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-qccg-9m4q-xfm6 changed 2026-10-27CC-BY-4.0
NVDCVE-2024-10835 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2026-325 changed 2026-07-01CC-BY-4.0