CVE-2026-51864

Published Sep 30, 2026 CVSS 3.1 · 9.1 Critical EPSS < 1% KEV · Not listed
Description
DB-GPT v0.7.5 and v0.8.0 contains directory traversal in python_file_upload (packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/python_upload_api.py:42). A remote attacker can use the validated exploitation path to write files outside the intended workspace or storage boundary.

Analysis

AI-generated

Technical impact

The vulnerability is a directory traversal flaw in the python_file_upload function of DB‑GPT’s API. A remote attacker can supply a crafted file path that bypasses the intended sandbox and write arbitrary files beyond the application’s workspace. This capability could allow the attacker to place malicious code or configuration files that might be executed by the application or retrieved by other users, compromising confidentiality, integrity, or availability of the system.

Affected Systems

The flaw exists in DB‑GPT version 0.7.5 and 0.8.0, as the code resides in dbgpt-app/src/dbgpt_app/openapi/api_v1/python_upload_api.py at line 42. Any deployment of these releases that exposes the upload endpoint is susceptible.

Risk and Exploitability

The CVSS score of 9.1 indicates a high severity vulnerability, while the EPSS score of < 1% reflects a very low current exploitation probability. The vulnerability is not listed in CISA’s KEV catalog. The attack path is inferred to be through the exposed python_file_upload API endpoint. An attacker would need network access to the API and the ability to craft the file upload request. Given the absence of publicly available exploit code, the risk level should be considered high severity with low exploitation likelihood for systems that allow remote uploads without additional controls.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a newer DB‑GPT release that removes directory traversal in python_file_upload.
  • If an update is not possible, patch the python_file_upload handler to sanitize filenames and ensure resolved paths remain inside the intended workspace using a safe path join function.
  • Restrict the application’s file system permissions so it can write only within the designated workspace and cannot create files elsewhere.
  • Disable or lock down the python_file_upload endpoint for users who do not require uploading files.

Generated by OpenCVE AI on October 1, 2026 at 20:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Title Directory Traversal in DB‑GPT Python File Upload Allows Arbitrary File Write
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Eosphoros-ai
Eosphoros-ai db-gpt
Vendors & Products Eosphoros-ai
Eosphoros-ai db-gpt
Type Values Removed Values Added
Title Directory Traversal in DB‑GPT Python File Upload Allows Arbitrary File Write
Weaknesses CWE-22
Type Values Removed Values Added
Description DB-GPT v0.7.5 and v0.8.0 contains directory traversal in python_file_upload (packages/dbgpt-app/src/dbgpt_app/openapi/api_v1/python_upload_api.py:42). A remote attacker can use the validated exploitation path to write files outside the intended workspace or storage boundary.
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 1, 2026, 6:41 PM
Reserved
Jun 8, 2026, 12:00 AM
Status
Deferred
Published
Sep 30, 2026, 9:17 PM
Modified
Oct 1, 2026, 7:17 PM