quickjs-ng through 0.9.0 has an incorrect size calculation in JS_ReadBigInt for a BigInt, leading to a heap-based buffer overflow. QuickJS before 2025-04-26 is also affected.
The product does not correctly calculate the size to be used when allocating a buffer, which could lead to a buffer overflow.
Link | Tags |
---|---|
https://github.com/quickjs-ng/quickjs/issues/1018 | third party advisory |
https://github.com/quickjs-ng/quickjs/pull/1020 | patch |
https://github.com/bellard/quickjs/commit/1eb05e44fad89daafa8ee3eb74b8520b4a37ec9a | patch |
https://github.com/quickjs-ng/quickjs/commit/28fa43d3ddff2c1ba91b6e3a788b2d7ba82d1465 | patch |
https://github.com/bellard/quickjs/issues/399 | third party advisory exploit |
https://bellard.org/quickjs/Changelog | product |