QuickJS-NGに脆弱性、JavaScriptからヒープバッファオーバーフローを起こされるおそれ
Summary
QuickJS-NGの0.16.0より前のバージョンには、TypedArray.prototype.sortの処理で整数オーバーフローが起きる脆弱性があります。32ビット環境で、JavaScriptを実行できる攻撃者がヒープバッファオーバーフローを起こし、クラッシュやコード実行につながるおそれがあります。修正版の0.16.0に更新してください。
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
QuickJS-NGの0.16.0より前のバージョンには、TypedArray.prototype.sortの処理で整数オーバーフローが起きる脆弱性があります。32ビット環境で、JavaScriptを実行できる攻撃者がヒープバッファオーバーフローを起こし、クラッシュやコード実行につながるおそれがあります。修正版の0.16.0に更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| quickjs-ngQuickJS-NG |
< 0.16.0→ 0.16.0 |
0.16.0 |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-120439 quickjs-ng Fix available
- Ubuntu UBUNTU-CVE-2026-120439 quickjs-ng No fixed version in this record
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- web github.com
- web github.com