CVE Catalog

CVE-2025-62490

HighCVSS 8.8
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.41%

34th percentile - higher than 34% of all known CVEs

Summary

In QuickJS's js_print_object, printing an array fetches the length and then loops over it, but printing a value is not side-effect free. An attacker-defined callback can run during js_print_value and resize the array, causing a use-after-free; a second instance occurs when printing Map or Set objects whose records list can be modified during js_print_value.

Risk Assessment

This can lead to memory corruption and potential code execution in applications embedding QuickJS that process untrusted data.

Recommendation

Update QuickJS to a version containing the fix and avoid printing untrusted data structures.

Other vulnerabilities in QuickJS

See all
Original NVD description (English source)

In quickjs, in js_print_object, when printing an array, the function first fetches the array length and then loops over it. The issue is, printing a value is not side-effect free. An attacker-defined callback could run during js_print_value, during which the array could get resized and len1 become out of bounds. This results in a use-after-free.A second instance occurs in the same function during printing of a map or set objects. The code iterates over ms->records list, but once again, elements could be removed from the list during js_print_value call.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS