CVE-2024-10831 Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt
CriticalCVSS 9.1
EPSS 0.84%
- 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 0.6.0, the endpoint for uploading files is vulnerable to absolute path traversal. This vulnerability allows an attacker to upload arbitrary files to arbitrary locations on the target server. The issue arises because the file_key and doc_file.filename parameters are user-controllable, enabling the construction of paths outside the intended directory. This can lead to overwriting essential system files, such as SSH keys, for further exploitation.
Upgrade path
3 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| eosphoros-ai/db-gpt | <= latest | after latest | Fixed |
| pypi dbgpt(PyPI) | <= 0.6.0; = 0.4.7; = 0.5.0; = 0.5.1 +17 more | after 0.6.0 | Fixed |
| dbgpt db-gpt | = 0.6.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi dbgpt(PyPI) | <= 0.6.0 | 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 |
| 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 product
- github.com
- huntr.com exploit third-party-advisory
- pypi.org product
- github.com vendor-advisory