CVE-2007-2799 (CNNVD-200705-459)

MEDIUM
中文标题:
file工具整数溢出及拒绝服务漏洞
英文标题:
Integer overflow in the "file" program 4.20, when running on 32-bit systems, as used in products inc...
CVSS分数: 5.1
发布时间: 2007-05-23 21:00:00
漏洞类型: 数字错误
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

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类型:
CWE-189
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 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:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
DSA-1343 vendor-advisory
cve.org
访问
29179 third-party-advisory
cve.org
访问
2007-0024 vendor-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
26415 third-party-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
ADV-2008-0924 vdb-entry
cve.org
访问
1018140 vdb-entry
cve.org
访问
SUSE-SA:2007:040 vendor-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
25931 third-party-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
25544 third-party-advisory
cve.org
访问
29420 third-party-advisory
cve.org
访问
MDKSA-2007:114 vendor-advisory
cve.org
访问
RHSA-2007:0391 vendor-advisory
cve.org
访问
25578 third-party-advisory
cve.org
访问
APPLE-SA-2008-03-18 vendor-advisory
cve.org
访问
20070524 FLEA-2007-0022-1: file mailing-list
cve.org
访问
file-assert-code-execution(34731) vdb-entry
cve.org
访问
ADV-2007-2071 vdb-entry
cve.org
访问
25394 third-party-advisory
cve.org
访问
NetBSD-SA2008-001 vendor-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
26294 third-party-advisory
cve.org
访问
26203 third-party-advisory
cve.org
访问
GLSA-200705-25 vendor-advisory
cve.org
访问
oval:org.mitre.oval:def:11012 vdb-entry
cve.org
访问
24146 vdb-entry
cve.org
访问
38498 vdb-entry
cve.org
访问
USN-439-2 vendor-advisory
cve.org
访问
CVSS评分详情
5.1
MEDIUM
CVSS向量: AV:N/AC:H/Au:N/C:P/I:P/A:P
CVSS版本: 2.0
机密性
PARTIAL
完整性
PARTIAL
可用性
PARTIAL
时间信息
发布时间:
2007-05-23 21:00:00
修改时间:
2024-08-07 13:49:57
创建时间:
2025-11-11 15:32:44
更新时间:
2025-11-11 15:49:17
利用信息
暂无可利用代码信息
数据源详情
数据源 记录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
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:49:17
vulnerability_type: 未提取 → 数字错误; cnnvd_id: 未提取 → CNNVD-200705-459; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 数字错误
  • cnnvd_id: 未提取 -> CNNVD-200705-459
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:41:30
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']
查看详细变更
  • 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']