CVE-2024-10834

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.
References
Link Resource
https://huntr.com/bounties/0d598508-151a-4050-9ccd-31bb82955e7a Exploit Third Party Advisory
Configurations

Configuration 1 (hide)

cpe:2.3:a:dbgpt:db-gpt:0.6.0:*:*:*:*:*:*:*

History

17 Jul 2025, 13:39

Type Values Removed Values Added
References () https://huntr.com/bounties/0d598508-151a-4050-9ccd-31bb82955e7a - () https://huntr.com/bounties/0d598508-151a-4050-9ccd-31bb82955e7a - Exploit, Third Party Advisory
First Time Dbgpt db-gpt
Dbgpt
CPE cpe:2.3:a:dbgpt:db-gpt:0.6.0:*:*:*:*:*:*:*
Summary
  • (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.

20 Mar 2025, 10:15

Type Values Removed Values Added
New CVE

Information

Published : 2025-03-20 10:15

Updated : 2025-07-17 13:39


NVD link : CVE-2024-10834

Mitre link : CVE-2024-10834

CVE.ORG link : CVE-2024-10834


JSON object : View

Products Affected

dbgpt

  • db-gpt
CWE
CWE-73

External Control of File Name or Path