9.1Critical

CVE-2024-10831Arbitrary File Write through Absolute Path Traversal in eosphoros-ai/db-gpt

eosphoros-ai eosphoros-ai/db-gpt Published: (1 year ago)

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.

Weakness (CWE): CWE-36

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
dbgpt db-gpt 0.6.0
eosphoros-ai eosphoros-ai/db-gpt unspecified – ≤ latest

References and patches

CPE matches (NVD) (1)

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