Skip to content
OpenAdvisories
Critical · 9.1 CVE-2024-10831 EUVD-2025-7081GHSA-hhw5-29f6-hf4xPYSEC-2026-323

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

Published Mar 20, 2025 · Updated Mar 20, 2025 · Assigned by @huntr_ai

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 products

VendorProductAffectedFixed
eosphoros-ai eosphoros-ai/db-gpt unspecified – ≤ latest —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI dbgpt <= 0.6.0 — GHSA-hhw5-29f6-hf4x

References