CVE-2024-10901 Arbitrary File Write via DuckDB SQL Injection in eosphoros-ai/db-gpt
CriticalCVSS 9.8
EPSS 1.1%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| eosphoros-ai/db-gpt | <= latest | after latest | Fixed |
| pypi dbgpt(PyPI) | <= 0.6.3; = 0.4.7; = 0.5.0; = 0.5.1 +24 more | after 0.6.3 | Fixed |
| dbgpt db-gpt | = 0.6.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbgpt(PyPI) | <= 0.6.3 | No fix listed |
| pypi dbgpt(PyPI) | = 0.4.7 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.1 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.10 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.1rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.2 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.2rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.3 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.3rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.4 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.4rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.5 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.5rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.6 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.6rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.7 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.7rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.8 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.9 | No fix listed |
| pypi dbgpt(PyPI) | = 0.5.9rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.1 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.2 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.3 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.3rc0 | No fix listed |
Show 5 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbgpt(PyPI) | = 0.6.3rc1 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.3rc2 | No fix listed |
| pypi dbgpt(PyPI) | = 0.6.3rc3 | No fix listed |
| eosphoros-ai/db-gpt | <= latest | No fix listed |
| dbgpt db-gpt | = 0.6.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com patch
- github.com patch
- github.com product
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory