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.
Severity (CVSS)
| Base score | 8.3 |
|---|---|
| Severity | High |
| Version | CVSS 4.0 |
| Vector | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N |
| Provided by | CNA |
Weaknesses
- CWE-190 — Integer Overflow or Wraparound
Affected products
| Vendor | Product | Versions |
|---|---|---|
| quickjs-ng | QuickJS-NG | 0 to <0.16.0 [affected] |
References
- https://github.com/quickjs-ng/quickjs/security/advisories/GHSA-9wv5-5cgr-grj6 (vendor-advisory)
- https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568 (patch)
- https://github.com/quickjs-ng/quickjs/releases/tag/v0.16.0 (release-notes)
- https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032 (technical-description)
- https://www.vulncheck.com/advisories/quickjs-ng-before-0.16.0-heap-buffer-overflow-via-typedarray-prototype-sort (third-party-advisory)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 03 Nov 2026 08:01 UTC.