QuickJS-NG
QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.3high · scored by CNA · CWE-190
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
quickjs-ng QuickJS-NG
- < 0.16.0
Fixed in 0.16.0
Mitigation
Upgrade QuickJS-NG to 0.16.0 or later.
References
- Vendor advisory github.com/quickjs-ng/quickjs/security/advisor…
- Patch github.com/quickjs-ng/quickjs/commit/e93cca611…
- Release notes github.com/quickjs-ng/quickjs/releases/tag/v0.…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.