CVE-2007-3181 (CNNVD-200706-202)
中文标题:
Firebird SQL fbserver connect请求远程缓冲区溢出漏洞
英文标题:
Buffer overflow in fbserver.exe in Firebird SQL 2 before 2.0.1 allows remote attackers to execute ar...
漏洞描述
中文描述:
Firebird SQL是Firebird基金会的一套开源跨平台的提供多个ANSI SQL-92功能的SQL数据库管理系统。 Firebird SQL数据库默认监听于TCP 3050端口的数据库服务fbserver.exe中存在缓冲区溢出漏洞,远程攻击者可能利用此漏洞控制服务器。 该服务在处理connect请求(0x1)时以如下方式拆分: typedef struct p_cnct { P_OP p_cnct_operation; /* OP_CREATE or OP_OPEN */ USHORT p_cnct_cversion; /* Version of connect protocol */ P_ARCH p_cnct_client; /* Architecture of client */ CSTRING p_cnct_file; /* File name */ USHORT p_cnct_count; /* Protocol versions understood */ CSTRING p_cnct_user_id; /* User identification stuff */ struct p_cnct_repeat { USHORT p_cnct_version; /* Protocol version number */ P_ARCH p_cnct_architecture; /* Architecture of client */ USHORT p_cnct_min_type; /* Minimum type */ USHORT p_cnct_max_type; /* Maximum type */ USHORT p_cnct_weight; /* Preference weight */ } p_cnct_versions[10]; } P_CNCT; 如果为p_cnct_count指定了超大值的话,就会在报文的XDR处理中出现未经检查的循环,导致覆盖本地rem_port结构及其vtable。具体来说,在XDR处理的下一次迭代中会调用rem_port->receive函数指针。有漏洞的代码如下: protocol.cpp:318 for (i = 0, tail = connect->p_cnct_versions; i < connect->p_cnct_count; i++, tail++) { MAP(xdr_short, reinterpret_cast(tail->p_cnct_version)); MAP(xdr_enum, reinterpret_cast(tail->p_cnct_architecture)); MAP(xdr_u_short, tail->p_cnct_min_type); MAP(xdr_u_short, tail->p_cnct_max_type); MAP(xdr_short, reinterpret_cast(tail->p_cnct_weight)); } 在循环操作中应检查tail的大小。
英文描述:
Buffer overflow in fbserver.exe in Firebird SQL 2 before 2.0.1 allows remote attackers to execute arbitrary code via a large p_cnct_count value in a p_cnct structure in a connect (0x01) request to port 3050/tcp, related to "an InterBase version of gds32.dll."
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| bakbone | netvault | 6.x | - | - |
cpe:2.3:a:bakbone:netvault:6.x:*:*:*:*:*:*:*
|
| firebirdsql | firebird | * | - | - |
cpe:2.3:a:firebirdsql:firebird:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
exploitdb
exploitdb
cve.org
CVSS评分详情
AV:N/AC:L/Au:N/C:C/I:C/A:C
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2007-3181 |
2025-11-11 15:17:53 | 2025-11-11 07:32:44 |
| NVD | nvd_CVE-2007-3181 |
2025-11-11 14:52:11 | 2025-11-11 07:41:30 |
| CNNVD | cnnvd_CNNVD-200706-202 |
2025-11-11 15:08:57 | 2025-11-11 07:49:18 |
| EXPLOITDB | exploitdb_EDB-30186 |
2025-11-11 15:05:26 | 2025-11-11 08:25:25 |
版本与语言
安全公告
变更历史
查看详细变更
- references_count: 11 -> 14
- tags_count: 0 -> 4
- data_sources: ['cnnvd', 'cve', 'nvd'] -> ['cnnvd', 'cve', 'exploitdb', 'nvd']
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200706-202
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.CRITICAL
- cvss_score: 未提取 -> 10.0
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:C/I:C/A:C
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']