CVE-2006-5870 (CNNVD-200612-653)

CRITICAL
中文标题:
OpenOffice WMF/EMF文件多个整数溢出漏洞
英文标题:
Multiple integer overflows in OpenOffice.org (OOo) 2.0.4 and earlier, and possibly other versions be...
CVSS分数: 9.3
发布时间: 2007-01-04 11:00:00
漏洞类型: 数字错误
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

OpenOffice(OOo)是美国阿帕奇(Apache)软件基金会的一款开源的办公软件套件。该套件包含文本文档、电子表格、演示文稿、绘图、数据库等。 OpenOffice在处理META_ESCAPE记录时存在截尾错误。在svtools\source\filter.vcl\wmf\winwmf.cxx文件中: case W_META_ESCAPE : ... sal_uInt32 i, nStringLen, nDXCount; ... aMemoryStream >> aPt.X() >> aPt.Y() >> nStringLen; sal_Unicode* pBuf = aString.AllocBuffer( (sal_uInt16)nStringLen ); for ( i = 0; i < nStringLen; i++ ) aMemoryStream >> pBuf[ i ]; nStringLen为sal_uInt32,被放到了sal_uInt16进行分配然后将最初的32位值用作了计数填充缓冲区,因此任何大于0xFFFF的长度都可能导致堆溢出。如果用户受骗打开了恶意的WMF文件或嵌入了该文件的文档(如Microsoft Word文档)的话,就可能导致通过覆盖函数指针或DWORD执行任意代码。 OpenOffice在处理EMR_POLYPOLYGON和EMR_POLYPOLYGON16记录时还存在整数溢出。在svtools\source\filter.vcl\wmf\enhwmf.cxx文件中: case EMR_POLYPOLYGON : INT32 i, nPoly, nGesPoints; ... *pWMF >> nPoly >> nGesPoints; ... pPtAry = (Point*) new char[ nGesPoints * sizeof(Point) ]; for ( i = 0; i < nGesPoints; i++ ) { *pWMF >> nX32 >> nY32; pPtAry[ i ] = Point( nX32, nY32 ); } 如果nGesPoints > (0x100000000/sizeof(Point))的话,nGesPoints * sizeof(Point)就会导致整数回绕。EMR_POLYPOLYGON16记录的情况与上述例子类似。远程攻击者可以通过诱骗用户打开恶意的WMF/EMF文件触发堆溢出,导致执行任意代码。

英文描述:

Multiple integer overflows in OpenOffice.org (OOo) 2.0.4 and earlier, and possibly other versions before 2.1.0; and StarOffice 6 through 8; allow user-assisted remote attackers to execute arbitrary code via a crafted (a) WMF or (b) EMF file that triggers heap-based buffer overflows in (1) wmf/winwmf.cxx, during processing of META_ESCAPE records; and wmf/enhwmf.cxx, during processing of (2) EMR_POLYPOLYGON and (3) EMR_POLYPOLYGON16 records.

CWE类型:
CWE-189
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
openoffice openoffice * - - cpe:2.3:a:openoffice:openoffice:*:*:*:*:*:*:*:*
sun staroffice 6.0 - - cpe:2.3:a:sun:staroffice:6.0:*:*:*:*:*:*:*
sun staroffice 7.0 - - cpe:2.3:a:sun:staroffice:7.0:*:*:*:*:*:*:*
sun staroffice 8.0 - - cpe:2.3:a:sun:staroffice:8.0:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
oval:org.mitre.oval:def:9145 vdb-entry
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
23683 third-party-advisory
cve.org
访问
无标题 x_refsource_MISC
cve.org
访问
23682 third-party-advisory
cve.org
访问
32611 vdb-entry
cve.org
访问
20070104 Correction (High Risk Vulnerability in the OpenOffice and StarOffice Suites) mailing-list
cve.org
访问
23920 third-party-advisory
cve.org
访问
23600 third-party-advisory
cve.org
访问
USN-406-1 vendor-advisory
cve.org
访问
VU#220288 third-party-advisory
cve.org
访问
23612 third-party-advisory
cve.org
访问
102735 vendor-advisory
cve.org
访问
SUSE-SA:2007:001 vendor-advisory
cve.org
访问
20070104 High Risk Vulnerability in the OpenOffice and StarOffice Suites mailing-list
cve.org
访问
23711 third-party-advisory
cve.org
访问
GLSA-200701-07 vendor-advisory
cve.org
访问
32610 vdb-entry
cve.org
访问
ADV-2007-0031 vdb-entry
cve.org
访问
23712 third-party-advisory
cve.org
访问
20070104 Re: [VulnWatch] High Risk Vulnerability in the OpenOffice and StarOffice Suites mailing-list
cve.org
访问
23616 third-party-advisory
cve.org
访问
RHSA-2007:0001 vendor-advisory
cve.org
访问
FEDORA-2007-005 vendor-advisory
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
20070104 Re: [VulnWatch] High Risk Vulnerability in the OpenOffice and StarOffice Suites mailing-list
cve.org
访问
oval:org.mitre.oval:def:8280 vdb-entry
cve.org
访问
23620 third-party-advisory
cve.org
访问
openoffice-wmf-bo(31257) vdb-entry
cve.org
访问
23549 third-party-advisory
cve.org
访问
ADV-2007-0059 vdb-entry
cve.org
访问
20070104 High Risk Vulnerability in the OpenOffice and StarOffice Suites mailing-list
cve.org
访问
20070108 rPSA-2007-0001-1 openoffice.org mailing-list
cve.org
访问
DSA-1246 vendor-advisory
cve.org
访问
20070101-01-P vendor-advisory
cve.org
访问
MDKSA-2007:006 vendor-advisory
cve.org
访问
1017466 vdb-entry
cve.org
访问
23762 third-party-advisory
cve.org
访问
CVSS评分详情
9.3
CRITICAL
CVSS向量: AV:N/AC:M/Au:N/C:C/I:C/A:C
CVSS版本: 2.0
机密性
COMPLETE
完整性
COMPLETE
可用性
COMPLETE
时间信息
发布时间:
2007-01-04 11:00:00
修改时间:
2024-08-07 20:04:55
创建时间:
2025-11-11 15:32:38
更新时间:
2025-11-11 15:49:13
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2006-5870 2025-11-11 15:17:46 2025-11-11 07:32:38
NVD nvd_CVE-2006-5870 2025-11-11 14:51:52 2025-11-11 07:41:24
CNNVD cnnvd_CNNVD-200612-653 2025-11-11 15:08:54 2025-11-11 07:49:13
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:49:13
vulnerability_type: 未提取 → 数字错误; cnnvd_id: 未提取 → CNNVD-200612-653; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 数字错误
  • cnnvd_id: 未提取 -> CNNVD-200612-653
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:41:24
severity: SeverityLevel.MEDIUM → SeverityLevel.CRITICAL; cvss_score: 未提取 → 9.3; cvss_vector: NOT_EXTRACTED → AV:N/AC:M/Au:N/C:C/I:C/A:C; cvss_version: NOT_EXTRACTED → 2.0; affected_products_count: 0 → 4; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • severity: SeverityLevel.MEDIUM -> SeverityLevel.CRITICAL
  • cvss_score: 未提取 -> 9.3
  • cvss_vector: NOT_EXTRACTED -> AV:N/AC:M/Au:N/C:C/I:C/A:C
  • cvss_version: NOT_EXTRACTED -> 2.0
  • affected_products_count: 0 -> 4
  • data_sources: ['cve'] -> ['cve', 'nvd']