CVE-2025-62496 (CNNVD-202510-2341)

HIGH
中文标题:
QuickJS 安全漏洞
英文标题:
Integer overflow in js_bigint_from_string in QuickJS
CVSS分数: 7.1
发布时间: 2025-10-16 15:52:05
漏洞类型: 其他
状态: PUBLISHED
数据质量分数: 0.30
数据版本: v3
漏洞描述
中文描述:

QuickJS是QuickJS开源的一个小型且可嵌入的 Javascript 引擎。 QuickJS存在安全漏洞,该漏洞源于BigInt字符串解析逻辑中存在整数溢出,可能导致堆越界写入。

英文描述:

A vulnerability exists in the QuickJS engine's BigInt string parsing logic (js_bigint_from_string) when attempting to create a BigInt from a string with an excessively large number of digits. The function calculates the necessary number of bits (n_bits) required to store the BigInt using the formula: $$\text{n\_bits} = (\text{n\_digits} \times 27 + 7) / 8 \quad (\text{for radix 10})$$ * For large input strings (e.g., $79,536,432$ digits or more for base 10), the intermediate calculation $(\text{n\_digits} \times 27 + 7)$ exceeds the maximum value of a standard signed 32-bit integer, resulting in an Integer Overflow. * The resulting n_bits value becomes unexpectedly small or even negative due to this wrap-around. * This flawed n_bits is then used to compute n_limbs, the number of memory "limbs" needed for the BigInt object. Since n_bits is too small, the calculated n_limbs is also significantly underestimated. * The function proceeds to allocate a JSBigInt object using this underestimated n_limbs. * When the function later attempts to write the actual BigInt data into the allocated object, the small buffer size is quickly exceeded, leading to a Heap Out-of-Bounds Write as data is written past the end of the allocated r->tab array.

CWE类型:
CWE-190
标签:
(暂无数据)
受影响产品
厂商 产品 版本 版本范围 平台 CPE
QuickJS QuickJS - < 2025-09-13 - cpe:2.3:a:quickjs:quickjs:*:*:*:*:*:*:*:*
quickjs_project quickjs * - - cpe:2.3:a:quickjs_project:quickjs:*:*:*:*:*:*:*:*
解决方案
中文解决方案:
(暂无数据)
英文解决方案:
(暂无数据)
临时解决方案:
(暂无数据)
参考链接
无标题 OTHER
cve.org
访问
无标题 OTHER
cve.org
访问
CVSS评分详情
4.0 (cna)
HIGH
7.1
CVSS向量: CVSS:4.0/AV:A/AC:H/AT:P/PR:L/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L
机密性
HIGH
完整性
HIGH
可用性
LOW
后续系统影响 (Subsequent):
机密性
HIGH
完整性
HIGH
可用性
LOW
时间信息
发布时间:
2025-10-16 15:52:05
修改时间:
2025-10-16 17:26:25
创建时间:
2025-11-11 15:40:49
更新时间:
2025-11-11 16:00:17
利用信息
暂无可利用代码信息
数据源详情
数据源 记录ID 版本 提取时间
CVE cve_CVE-2025-62496 2025-11-11 15:23:33 2025-11-11 07:40:49
NVD nvd_CVE-2025-62496 2025-11-11 15:01:06 2025-11-11 07:48:35
CNNVD cnnvd_CNNVD-202510-2341 2025-11-11 15:13:00 2025-11-11 08:00:17
版本与语言
当前版本: v3
主要语言: EN
支持语言:
EN ZH
安全公告
暂无安全公告信息
变更历史
v3 CNNVD
2025-11-11 16:00:17
vulnerability_type: 未提取 → 其他; cnnvd_id: 未提取 → CNNVD-202510-2341; data_sources: ['cve', 'nvd'] → ['cnnvd', 'cve', 'nvd']
查看详细变更
  • vulnerability_type: 未提取 -> 其他
  • cnnvd_id: 未提取 -> CNNVD-202510-2341
  • data_sources: ['cve', 'nvd'] -> ['cnnvd', 'cve', 'nvd']
v2 NVD
2025-11-11 15:48:35
affected_products_count: 1 → 2; data_sources: ['cve'] → ['cve', 'nvd']
查看详细变更
  • affected_products_count: 1 -> 2
  • data_sources: ['cve'] -> ['cve', 'nvd']