CRITICAL🇵🇱 Wersja polska

CVE-2024-10902

CVSS 9.8v3.1pub. 2025-03-20upd. 2025-10-15

In eosphoros-ai/db-gpt version v0.6.0, the web API `POST /v1/personal/agent/upload` is vulnerable to Arbitrary File Upload with Path Traversal. This vulnerability allows unauthorized attackers to upload arbitrary files to the victim's file system at any location. The impact of this vulnerability includes the potential for remote code execution (RCE) by writing malicious files, such as a malicious `__init__.py` in the Python's `/site-packages/` directory.

🤖 AI Analysis
How it works

The API endpoint does not properly validate the target path of the uploaded file, enabling a path traversal attack (CWE-22). An unauthenticated attacker can construct an HTTP request containing traversal sequences in the filename or path, causing the file to be written outside the intended directory. An example attack scenario involves placing a malicious `__init__.py` file in the Python `/site-packages/` directory, which results in code execution when the package is subsequently imported by the application.

Impact

An attacker can write arbitrary files to any location on the server's file system, which consequently enables remote code execution (RCE) and complete system compromise.

Mitigation & patch

Patches available from the vendor should be applied according to the references. Additionally — until the fix is deployed — it is recommended to restrict access to the `POST /v1/personal/agent/upload` endpoint at the firewall or reverse proxy level and require authentication for all API calls.

Who is affected

eosphoros-ai/db-gpt in version v0.6.0

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

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

Related vulnerabilities

CVE-2024-10835CRITICAL9.8PL ✓ten sam produkt

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

CVE-2024-10831CRITICAL9.1PL ✓ten sam produkt

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

CVE-2024-10833CRITICAL9.1PL ✓ten sam produkt

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

CVE-2024-10834CRITICAL9.1PL ✓ten sam produkt

Dowolny zapis plików w db-gpt przez podatność path traversal w RAG-knowledge

CVE-2024-10901CRITICAL9.8PL ✓ten sam produkt

Dowolne wykonanie kodu przez niekontrolowane SQL API w db-gpt