CVE-2005-0255 (CNNVD-200505-034)

MEDIUM
中文标题:
Mozilla Firefox和Mozilla浏览器字符串处理堆破坏漏洞
英文标题:
String handling functions in Mozilla 1.7.3, Firefox 1.0, and Thunderbird before 1.0.2, such as the n...
CVSS分数: 5.0
发布时间: 2005-02-28 05:00:00
漏洞类型: 授权问题
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

Mozilla是一款开放源码的Web浏览器。 Mozilla 1.7.3和Firefox 1.0中的实现中存在漏洞,远程利用漏洞可能允许攻击者导致堆破坏,造成执行任意代码。 漏洞存在于依赖mozilla/xpcom/string/src/nsTSubstring.cpp文件中函数的字符串处理函数(如nsCSubstring::Append)中。某些函数(如nsTSubstring_CharT::Replace())不能检查重新划定字符串大小函数的返回值。 xpcom/string/src/nsTSubstring.cpp: [1] size_type length = tuple.Length(); cutStart = PR_MIN(cutStart, Length()); [2] ReplacePrep(cutStart, cutLength, length); [3] if (length > 0) tuple.WriteTo(mData + cutStart, length); 在[1]中,长度被设置为将要拷贝的字符串的长度,并于[2]传送给ReplacePrep()。如果这个函数执行的重新分配失败,则将mData设为固定的地址。 mData = NS_CONST_CAST(char_type*, char_traits::sEmptyBuffer); mLength = 0; xpcom/string/src/nsSubstring.cpp中设置了sEmptyBuffer的值: static const PRUnichar gNullChar = 0; const char* nsCharTraits<char> ::sEmptyBuffer = (const char*) &gNullChar; 因为没有检查返回值,如果函数失效的话,mData就指向已知的内存位置。通过导致内存消耗直到出现内存耗尽的情况出现,并控制要附加的字符串的值,就可能在[3]导致在已知位置放置任意数据,允许执行任意代码。

英文描述:

String handling functions in Mozilla 1.7.3, Firefox 1.0, and Thunderbird before 1.0.2, such as the nsTSubstring_CharT::Replace function, do not properly check the return values of other functions that resize the string, which allows remote attackers to cause a denial of service and possibly execute arbitrary code by forcing an out-of-memory state that causes a reallocation to fail and return a pointer to a fixed address, which leads to heap corruption.

CWE类型:
(暂无数据)
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
mozilla firefox 1.0 - - cpe:2.3:a:mozilla:firefox:1.0:*:*:*:*:*:*:*
mozilla mozilla 1.7.3 - - cpe:2.3:a:mozilla:mozilla:1.7.3:*:*:*:*:*:*:*
mozilla thunderbird 0.1 - - cpe:2.3:a:mozilla:thunderbird:0.1:*:*:*:*:*:*:*
mozilla thunderbird 0.2 - - cpe:2.3:a:mozilla:thunderbird:0.2:*:*:*:*:*:*:*
mozilla thunderbird 0.3 - - cpe:2.3:a:mozilla:thunderbird:0.3:*:*:*:*:*:*:*
mozilla thunderbird 0.4 - - cpe:2.3:a:mozilla:thunderbird:0.4:*:*:*:*:*:*:*
mozilla thunderbird 0.5 - - cpe:2.3:a:mozilla:thunderbird:0.5:*:*:*:*:*:*:*
mozilla thunderbird 0.6 - - cpe:2.3:a:mozilla:thunderbird:0.6:*:*:*:*:*:*:*
mozilla thunderbird 0.7 - - cpe:2.3:a:mozilla:thunderbird:0.7:*:*:*:*:*:*:*
mozilla thunderbird 0.8 - - cpe:2.3:a:mozilla:thunderbird:0.8:*:*:*:*:*:*:*
mozilla thunderbird 0.9 - - cpe:2.3:a:mozilla:thunderbird:0.9:*:*:*:*:*:*:*
mozilla thunderbird 1.0 - - cpe:2.3:a:mozilla:thunderbird:1.0:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
12659 vdb-entry
cve.org
访问
SUSE-SA:2005:016 vendor-advisory
cve.org
访问
19823 third-party-advisory
cve.org
访问
oval:org.mitre.oval:def:9111 vdb-entry
cve.org
访问
无标题 x_refsource_CONFIRM
cve.org
访问
oval:org.mitre.oval:def:100040 vdb-entry
cve.org
访问
20050228 Mozilla Firefox and Mozilla Browser Out Of Memory Heap Corruption Design Error third-party-advisory
cve.org
访问
RHSA-2005:176 vendor-advisory
cve.org
访问
GLSA-200503-30 vendor-advisory
cve.org
访问
RHSA-2005:277 vendor-advisory
cve.org
访问
GLSA-200503-10 vendor-advisory
cve.org
访问
SUSE-SA:2006:022 vendor-advisory
cve.org
访问
RHSA-2005:337 vendor-advisory
cve.org
访问
CVSS评分详情
5.0
MEDIUM
CVSS向量: AV:N/AC:L/Au:N/C:N/I:N/A:P
CVSS版本: 2.0
机密性
NONE
完整性
NONE
可用性
PARTIAL
时间信息
发布时间:
2005-02-28 05:00:00
修改时间:
2024-08-07 21:05:25
创建时间:
2025-11-11 15:32:24
更新时间:
2025-11-11 15:48:57
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2005-0255 2025-11-11 15:17:32 2025-11-11 07:32:24
NVD nvd_CVE-2005-0255 2025-11-11 14:51:18 2025-11-11 07:41:10
CNNVD cnnvd_CNNVD-200505-034 2025-11-11 15:08:46 2025-11-11 07:48:57
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 15:48:57
vulnerability_type: 未提取 → 授权问题; cnnvd_id: 未提取 → CNNVD-200505-034; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 授权问题
  • cnnvd_id: 未提取 -> CNNVD-200505-034
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:41:10
cvss_score: 未提取 → 5.0; cvss_vector: NOT_EXTRACTED → AV:N/AC:L/Au:N/C:N/I:N/A:P; cvss_version: NOT_EXTRACTED → 2.0; affected_products_count: 0 → 12; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • cvss_score: 未提取 -> 5.0
  • cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:N/I:N/A:P
  • cvss_version: NOT_EXTRACTED -> 2.0
  • affected_products_count: 0 -> 12
  • data_sources: ['cve'] -> ['cve', 'nvd']