CRITICAL🇵🇱 Wersja polska

CVE-2024-10834

CVSS 9.1v3.0pub. 2025-03-20upd. 2025-07-17

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.

🤖 AI Analysis
How it works

The vulnerability results from improper file path handling in the `os.path.join` function call — when the `doc_file.filename` parameter contains an absolute path, the function ignores the previously defined base directory and uses only the provided absolute path. An attacker can thus set the `doc_file.filename` value to any absolute path in the server's file system (e.g. `/root/.ssh/authorized_keys`), resulting in writing controlled content outside the permitted area. The attack requires no authentication or user interaction.

Impact

An attacker can overwrite existing system files or create new files anywhere in the server's file system, which in practice can lead to permanent takeover of server control — for example by adding their own SSH key to the `authorized_keys` file.

Mitigation & patch

Patches available from the vendor should be applied according to references. As a temporary measure, it is recommended to restrict network access to the RAG-knowledge endpoint and verify the integrity of critical system files and SSH entries on servers with the application installed.

Who is affected

eosphoros-ai/db-gpt version 0.6.0

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Dbgpt Db Gpt

    APP
    Dbgpt
    0.6.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2024-10901CRITICAL9.8PL ✓same product

Dowolne wykonanie kodu przez niekontrolowane SQL API w db-gpt

CVE-2024-10831CRITICAL9.1PL ✓same product

Absolute Path Traversal w DB-GPT — zapis plików w dowolnej lokalizacji

CVE-2024-10833CRITICAL9.1PL ✓same product

Arbitrary file write przez path traversal w DB-GPT (knowledge API)

CVE-2024-10835CRITICAL9.8PL ✓same product

SQL Injection i zapis plików w db-gpt umożliwiające RCE

CVE-2024-10902CRITICAL9.8PL ✓same product

Arbitrary File Upload z Path Traversal w db-gpt — możliwy RCE