CVE-2024-10835 Arbitrary File Write via SQL Injection in eosphoros-ai/db-gpt
CriticalCVSS 9.8
EPSS 1.2%
- 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/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).
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| eosphoros-ai/db-gpt | <= latest | after latest | Fixed |
| pypi dbgpt(PyPI) | < 0.7.1; = 0.4.7; = 0.5.0; = 0.5.1 +29 more | 0.7.1 | Fixed |
| dbgpt db-gpt | = 0.6.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbgpt(PyPI) | < 0.7.1 | 0.7.1 |
| 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 10 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 |
| pypi dbgpt(PyPI) | = 0.7.0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.7.0rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.7.0rc1 | No fix listed |
| pypi dbgpt(PyPI) | = 0.7.1rc0 | No fix listed |
| pypi dbgpt(PyPI) | = 0.7.1rc1 | 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 product
- github.com
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory