CVE-2024-10831

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

State
Published
Severity
9.1 Critical
Published
Mar 20, 2025
Updated
Mar 20, 2025
Reserved
Nov 4, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.09.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H@huntr_ai

Weaknesses

  • CWE-36 Absolute Path Traversal

Affected Products

ProductVersions
eosphoros-ai/db-gpteosphoros-ai
  • latest and earlierAffected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.