CVE-2005-0592 (CNNVD-200503-136)
中文标题:
Mozilla Firefox和Mozilla浏览器 堆破坏漏洞
英文标题:
Heap-based buffer overflow in the UTF8ToNewUnicode function for Firefox before 1.0.1 and Mozilla bef...
漏洞描述
中文描述:
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]导致在已知位置放置任意数据,允许执行任意代码。
英文描述:
Heap-based buffer overflow in the UTF8ToNewUnicode function for Firefox before 1.0.1 and Mozilla before 1.7.6 might allow remote attackers to cause a denial of service (crash) or execute arbitrary code via invalid sequences in a UTF8 encoded string that result in a zero length value.
CWE类型:
标签:
受影响产品
| 厂商 | 产品 | 版本 | 版本范围 | 平台 | CPE |
|---|---|---|---|---|---|
| mozilla | firefox | 0.8 | - | - |
cpe:2.3:a:mozilla:firefox:0.8:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.9 | - | - |
cpe:2.3:a:mozilla:firefox:0.9:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.9.1 | - | - |
cpe:2.3:a:mozilla:firefox:0.9.1:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.9.2 | - | - |
cpe:2.3:a:mozilla:firefox:0.9.2:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.9.3 | - | - |
cpe:2.3:a:mozilla:firefox:0.9.3:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.10 | - | - |
cpe:2.3:a:mozilla:firefox:0.10:*:*:*:*:*:*:*
|
| mozilla | firefox | 0.10.1 | - | - |
cpe:2.3:a:mozilla:firefox:0.10.1:*:*:*:*:*:*:*
|
| mozilla | firefox | 1.0 | - | - |
cpe:2.3:a:mozilla:firefox:1.0:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.3 | - | - |
cpe:2.3:a:mozilla:mozilla:1.3:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.4 | - | - |
cpe:2.3:a:mozilla:mozilla:1.4:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.4.1 | - | - |
cpe:2.3:a:mozilla:mozilla:1.4.1:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.5 | - | - |
cpe:2.3:a:mozilla:mozilla:1.5:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.5.1 | - | - |
cpe:2.3:a:mozilla:mozilla:1.5.1:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.6 | - | - |
cpe:2.3:a:mozilla:mozilla:1.6:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7.1 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7.1:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7.2 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7.2:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7.3 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7.3:*:*:*:*:*:*:*
|
| mozilla | mozilla | 1.7.5 | - | - |
cpe:2.3:a:mozilla:mozilla:1.7.5:*:*:*:*:*:*:*
|
解决方案
中文解决方案:
英文解决方案:
临时解决方案:
参考链接
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
cve.org
CVSS评分详情
AV:N/AC:L/Au:N/C:P/I:P/A:P
时间信息
利用信息
数据源详情
| 数据源 | 记录ID | 版本 | 提取时间 |
|---|---|---|---|
| CVE | cve_CVE-2005-0592 |
2025-11-11 15:17:32 | 2025-11-11 07:32:25 |
| NVD | nvd_CVE-2005-0592 |
2025-11-11 14:51:18 | 2025-11-11 07:41:11 |
| CNNVD | cnnvd_CNNVD-200503-136 |
2025-11-11 15:08:46 | 2025-11-11 07:48:57 |
版本与语言
安全公告
变更历史
查看详细变更
- vulnerability_type: 未提取 -> 授权问题
- cnnvd_id: 未提取 -> CNNVD-200503-136
- data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
查看详细变更
- severity: SeverityLevel.MEDIUM -> SeverityLevel.HIGH
- cvss_score: 未提取 -> 7.5
- cvss_vector: NOT_EXTRACTED -> AV:N/AC:L/Au:N/C:P/I:P/A:P
- cvss_version: NOT_EXTRACTED -> 2.0
- affected_products_count: 0 -> 19
- data_sources: ['cve'] -> ['cve', 'nvd']