9.1critical
Arbitrary File Write in eosphoros-ai/db-gpt
- Severity
- 9.1critical CVSS:3.0 by @huntr_ai
- Exploit likelihood
- 0.64% (higher than 51% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- @huntr_ai
Description
eosphoros-ai/db-gpt version 0.6.0 contains a vulnerability in the RAG-knowledge endpoint that allows for arbitrary file write. The issue arises from the ability to pass an absolute path to a call to `os.path.join`, enabling an attacker to write files to arbitrary locations on the target server. This vulnerability can be exploited by setting the `doc_file.filename` to an absolute path, which can lead to overwriting system files or creating new SSH-key entries.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| eosphoros-ai eosphoros-ai/db-gpt | from unspecified up to latest | CVE List |
| dbgpt db-gpt | 0.6.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
eosphoros-ai/db-gpt version 0.6.0 contains a vulnerability in the RAG-knowledge endpoint that allows for arbitrary file write. The issue arises from the ability to pass an absolute path to a call to `os.path.join`, enabling an attacker to write files to arbitrary locations on the target server. This vulnerability can be exploited by setting the `doc_file.filename` to an absolute path, which can lead to overwriting system files or creating new SSH-key entries.
NVD (es)
La versión 0.6.0 de eosphoros-ai/db-gpt contiene una vulnerabilidad en el endpoint RAG-knowledge que permite la escritura arbitraria de archivos. El problema surge de la posibilidad de pasar una ruta absoluta a una llamada a `os.path.join`, lo que permite a un atacante escribir archivos en ubicaciones arbitrarias del servidor objetivo. Esta vulnerabilidad puede explotarse configurando `doc_file.filename` con una ruta absoluta, lo que puede provocar la sobrescritura de archivos del sistema o la creación de nuevas entradas de clave SSH.
References
| https://huntr.com/bounties/0d598508-151a-4050-9ccd-31bb82955e7a | exploit, third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-10834 changed 2025-03-20 | CVE Terms of Use |
| NVD | CVE-2024-10834 changed 2026-06-17 | Public domain |