9.1critical
Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt
- Severity
- 9.1critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.83% (higher than 58% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
- Also known as
- GHSA-hhw5-29f6-hf4xPYSEC-2026-323
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| eosphoros-ai eosphoros-ai/db-gpt | from unspecified up to latest | CVE List |
| dbgpt (PyPI) | up to 0.6.0 | GitHub Advisory Database, PyPA Advisory Database |
| dbgpt db-gpt | 0.6.0 | NVD |
All scores
| @huntr_ai | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| PyPA Advisory Database | 9.1critical CVSS:3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En la versión 0.6.0 de eosphoros-ai/db-gpt, el endpoint para subir archivos es vulnerable a path traversal absoluto. Esta vulnerabilidad permite a un atacante subir archivos arbitrarios a ubicaciones arbitrarias en el servidor objetivo. El problema surge porque los parámetros `file_key` y `doc_file.filename` son controlables por el usuario, lo que permite la construcción de rutas fuera del directorio de destino. Esto puede provocar la sobrescritura de archivos esenciales del sistema, como claves SSH, para su posterior explotación.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-10831 changed 2025-03-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hhw5-29f6-hf4x changed 2026-10-27 | CC-BY-4.0 |
| NVD | CVE-2024-10831 changed 2026-06-17 | Public domain |
| PyPA Advisory Database | PYSEC-2026-323 changed 2026-07-01 | CC-BY-4.0 |