home / blog

2026-12-01 · high

CVE-2026-120439: Critical heap buffer overflow in QuickJS-NG

Heap buffer overflow in QuickJS-NG CVE-2026-120439 on 32-bit hosts. Urgent patch required.

CVE-2026-120439: Critical heap buffer overflow in QuickJS-NG

CVE-2026-120439 is an integer overflow vulnerability 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.

The severity is high with CVSS score 7.0 and declared severity "high". The vulnerability was officially published on NVD on November 2, 2026. There are already public repositories that claim to contain exploits for this vulnerability, confirming the concreteness of the threat.

In case of using QuickJS-NG, it is essential to promptly apply the patch by upgrading to version 0.16.0. For those using unpatched versions, it is recommended to verify the presence of functionality that uses js_typed_array_sort() and, if necessary, temporarily disable it. It is also important to monitor systems for anomalous behavior that might indicate an attempt to exploit the vulnerability.

At a glance

What
Integer overflow in js_typed_array_sort() in quickjs.c causing heap buffer overflow
Severity
CVSS 7.0 (high)
Affected versions
QuickJS-NG before 0.16.0
Fix
Update to version 0.16.0
Status
Officially published on NVD
Action
Apply patch urgently

Sources: NVD, CVE-2026-120439

← All articles