Eosphoros AI DB-GPT Arbitrary File Deletion Vulnerability on Windows

Vulnerability

A vulnerability allowing arbitrary file deletion has been identified in Eosphoros AI DB-GPT, specifically in the latest version. This issue arises on Windows systems, where the application does not properly sanitize the backslash character, a common path separator in Windows. Exploiting this vulnerability involves manipulating the 'plugin_repo_name' variable to delete files from the host system via the '/v1/agent/hub/update' endpoint.

Impact

Exploitation of this vulnerability allows for the deletion of any files on the Windows system where DB-GPT is running.

Reproduction

To reproduce this vulnerability, install DB-GPT on a Windows machine. After setting up the environment and installing the application, edit the .env file to include the necessary proxy LLM configurations. Once the server is running, create a folder named 'poc' in the DB-GPT directory and place a file named 'cybrx.txt' inside it. Then, send a POST request to the '/v1/agent/hub/update' endpoint with a payload that includes a crafted 'url' parameter targeting the 'poc' folder. The 'cybrx.txt' file will be deleted as a result.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
8.7
remediation
0.0
relevance
0.0
threat
6.4
urgency
2.9
incentive
5.8

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.