QuickJS-NG
cpe:2.3:a:quickjs-ng:quickjs:*:*:*:*:*:*:*
- 0.12.1
A use-after-free vulnerability has been identified in QuickJS-NG version 0.12.1. The issue arises in the 'js_mapped_arguments_mark' function, where non-detached 'JSVarRef' entries in a mapped arguments fast array are not properly handled. This oversight leads to the use of uninitialized link pointers during garbage collection, creating a condition that can be exploited to execute arbitrary native code.
Exploitation of this vulnerability allows for arbitrary code execution.
The vulnerability can be reproduced by creating a proof-of-concept script that manipulates the garbage collection process. This script should trigger the 'js_mapped_arguments_mark' function to process non-detached 'JSVarRef' entries, causing the garbage collector to access uninitialized memory. The AddressSanitizer will report a segmentation fault due to this invalid memory access, demonstrating the use-after-free condition.
Users can upgrade to QuickJS-NG version 0.13.0, where this vulnerability has been fixed.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.