CVE-2007-2799 (CNNVD-200705-459)
中文标题:
file工具整数溢出及拒绝服务漏洞
英文标题:
Integer overflow in the "file" program 4.20, when running on 32-bit systems, as used in products inc...
漏洞描述
中文描述:
File是用于查看文件类型信息的命令行工具。 File工具处理某些畸形文件时存在漏洞,攻击者可能利用这些漏洞通过诱使用户处理恶意文件导致file工具溢出或崩溃。 如果用户使用file在32位系统上查看了很大的文件,则可能触发整数溢出,导致执行任意指令: + len = ms->o.size - ms->o.left; + /* * 4 is for octal representation, + 1 is for NUL */ + psize = len * 4 + 1; + assert(psize > len); 在32位系统上,如果len为1.35GB的话,len * 4 + 1 = 5.4GB == 1.4GB,因此assert可以通过,触发缓冲区溢出。 file的glib库没有正确地处理识别OS/2 REXX文件的正则表达式,所捆绑的magic文件包含以下两行: 100 regex/c =^\\s*call\\s+rxfuncadd.*sysloadfu OS/2 REXX batch file text 100 regex/c =^\\s*say\ ['"] OS/2 REXX batch file text 如果用户受骗使用file处理了包含有大量换行字符的特制文档的话,就可能会耗尽大量CPU资源。
英文描述:
Integer overflow in the "file" program 4.20, when running on 32-bit systems, as used in products including The Sleuth Kit, might allow user-assisted attackers to execute arbitrary code via a large file that triggers an overflow that bypasses an assert() statement. NOTE: this issue is due to an incorrect patch for CVE-2007-1536.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| file | file | 4.2 | - | - |
cpe:2.3:a:file:file:4.2:*:*:*:*:*:*:*
|
| sleuth_kit | the_sleuth_kith | * | - | - |
cpe:2.3:a:sleuth_kit:the_sleuth_kith:*:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
AV:N/AC:H/Au:N/C:P/I:P/A:P
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2007-2799 |
2025-11-11 15:17:52 | 2025-11-11 07:32:44 |
| NVD | nvd_CVE-2007-2799 |
2025-11-11 14:52:10 | 2025-11-11 07:41:30 |
| CNNVD | cnnvd_CNNVD-200705-459 |
2025-11-11 15:08:57 | 2025-11-11 07:49:17 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 数字错误
- cnnvd_id: 未提取 -> CNNVD-200705-459
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- cvss_score: 未提取 -> 5.1
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:H/Au:N/C:P/I:P/A:P
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 2
- data_sources: ['cve'] -> ['cve', 'nvd']