QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
- State
- Published
- Severity
- 8.3 High
- Published
- Nov 2, 2026
- Updated
- Nov 6, 2026
- Reserved
- Nov 2, 2026
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.
| Product | Versions |
|---|---|
| QuickJS-NG quickjs-ng | before 0.16.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 8.3 High | VulnCheck | |
| 3.1 | 7.0 High | VulnCheck |
Weaknesses
- CWE-190 Integer Overflow or Wraparound
References
- GitHub Security Advisory (GHSA-9wv5-5cgr-grj6)Vendor Advisory
- https://github.com/quickjs-ng/quickjs/commit/e93cca611908e12b824ec85fbee6b31a5ee61568Patch
- QuickJS-NG v0.16.0 Release NotesRelease Notes
- https://github.com/quickjs-ng/quickjs/blob/v0.15.1/quickjs.c#L60032Technical Details
- VulnCheck Advisory: QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sortThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.