CVE-2026-120439 QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort
HighCVSS 8.3
EPSS 0.34%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
3 packages: 2 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/quickjs-ng(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/quickjs-ng(Debian 14) | < 0.16.2-1; = 0.13.0-1; = 0.13.0-2; = 0.13.0-3 +8 more | 0.16.2-1 | Fixed |
| quickjs-ng quickjs | < 0.16.0 | 0.16.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| quickjs-ng quickjs | < 0.16.0 | 0.16.0 |
| debian/quickjs-ng(Debian:14) | < 0.16.2-1 | 0.16.2-1 |
| debian/quickjs-ng(Debian:14) | = 0.13.0-1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.13.0-2 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.13.0-3 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.14.0-1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.14.0-2 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.14.0-2~bpo13+1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.14.0-2~bpo13+2 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.15.0-1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.15.0-1~bpo13+1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.15.1-1 | No fix listed |
| debian/quickjs-ng(Debian:14) | = 0.15.1-1~bpo13+1 | No fix listed |
| ubuntu/quickjs-ng(Ubuntu:26.10) | All versions | No fix listed |
References
- GitHub Security Advisory (GHSA-9wv5-5cgr-grj6) exploit vendor-advisory
- github.com patch
- QuickJS-NG v0.16.0 Release Notes release-notes
- github.com technical-description
- VulnCheck Advisory: QuickJS-NG before 0.16.0 Heap Buffer Overflow via TypedArray.prototype.sort third-party-advisory
- Debian Security Tracker CVE-2026-120439 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- ENISA EUVD EUVD-2026-115199 third-party-advisory