Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-120439— QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort

Quick assessment

Affected
quickjs-ng QuickJS-NG
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

QuickJS-NG 在 0.16.0 版本之前存在一个整数溢出漏洞,位于 quickjs.c 文件中的 js_typed_array_sort() 函数。该漏洞允许攻击者在 32 位主机上引发堆缓冲区溢出。能够执行 JavaScript 的攻击者可以通过对包含接近 2^30 个元素的 TypedArray 调用 TypedArray.prototype.sort 并传入自定义比较器,导致分配大小发生回绕(wrap-around),从而向缓冲区之后的索引位置写入数据,造成程序崩溃,甚至可能实现代码执行。

CVSS 7.0 · High

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
quickjs-ng QuickJS-NG < 0.16.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-120439

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
Source: CVE Program / CVE List V5
Vulnerability Description
QuickJS-NG before 0.16.0 contains an integer overflow in js_typed_array_sort() in quickjs.c that allows attackers to cause a heap buffer overflow on 32-bit hosts. Attackers who can run JavaScript can call TypedArray.prototype.sort with a comparator on a typed array near 2^30 elements, wrapping the allocation size and writing indices past the buffer to crash or potentially execute code.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
整数溢出或超界折返
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
quickjs-ng QuickJS-NG 0 ~ 0.16.0 -

II. Public POCs for CVE-2026-120439

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-120439

请登录查看更多情报信息。

Other References for CVE-2026-120439 (5)

Same Patch Batch · quickjs-ng · 2026-11-02 · 3 CVEs total

CVE-2026-120438 7.8 HIGH QuickJS-NG before 0.16.0 Heap Buffer Overflow via Proxy ownKeys Enumeration
CVE-2026-120440 5.3 MEDIUM QuickJS-NG before 0.16.0 Memory Leak via Atomics.store

IV. Related Vulnerabilities