CVE-2025-51459 Details
Description
File Upload vulnerability in agent.hub.controller.refresh_plugins in eosphoros-ai DB-GPT 0.7.0 allows remote attackers to execute arbitrary code via a malicious plugin ZIP file uploaded to the /v1/personal/agent/upload endpoint, interacting with plugin_hub._sanitize_filename and plugins_util.scan_plugins.
A remote code execution vulnerability has been identified in Eosphoros AI DB-GPT version 0.7.0. The issue arises in the plugin upload functionality via the '/v1/personal/agent/upload' endpoint. Although there are basic security measures for filename sanitization and path traversal prevention, the vulnerability exists because there is no validation of the actual content of the uploaded plugin code. This allows an attacker to upload a malicious Python file that, while passing the filename checks, contains arbitrary code. Once the plugin is loaded through 'scan_plugins()' during the 'refresh_plugins()' call, the malicious code is executed. The vulnerability can be exploited remotely without any special permissions or authentication, and the code execution occurs quietly during the plugin loading process, even if the plugin validation ultimately fails.
Users can update to the patched version of DB-GPT, which is available in the project's GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/eosphoros-ai/DB-GPT/pull/2649 | [email protected] | ExploitIssue Tracking |
| https://www.gecko.security/blog/cve-2025-51459 | [email protected] | ExploitThird Party Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-77 | Improper Neutralization of Special Elements used in a Command ('Command Injection') | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| dbgpt db-gpt | 0.7.0 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 11, 2025 | Initial Analysis | [email protected] |
| Jul 22, 2025 | CVE Modified | CISA-ADP |
| Jul 22, 2025 | New CVE Received | [email protected] |