Vulnerability · Published Mar 20, 2025 · Assigned by @huntr_ai
CVE-2024-10901Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt
Critical 9.1
In plain English
A critical-severity unrestricted file upload in eosphoros-ai/db-gpt from eosphoros-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.1% (higher than 66% of all known vulnerabilities).
Official description
In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /api/v1/editor/chart/run` allows execution of arbitrary SQL queries without any access control. This vulnerability can be exploited by attackers to perform Arbitrary File Write, enabling them to write arbitrary files to the victim's file system. This can potentially lead to Remote Code Execution (RCE) by writing malicious files such as `__init__.py` in the Python's `/site-packages/` directory.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| PyPI | dbgpt | no fix listed | GHSA-7gj6-22m4-qfhx |
| PyPI | dbgpt | no fix listed | PYSEC-2026-322 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| eosphoros-ai | eosphoros-ai/db-gpt | unspecified – through latest |
Weakness: CWE-434 · Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H