Vulnerability Details CVE-2025-62494
A type confusion vulnerability exists in the handling of the string addition (+) operation within the QuickJS engine.
* The code first checks if the left-hand operand is a string.
* It then attempts to convert the right-hand operand to a primitive value using JS_ToPrimitiveFree. This conversion can trigger a callback (e.g., toString or valueOf).
* During this callback, an attacker can modify the type of the left-hand operand in memory, changing it from a string to a different type (e.g., an object or an array).
* The code then proceeds to call JS_ConcatStringInPlace, which still treats the modified left-hand value as a string.
This mismatch between the assumed type (string) and the actual type allows an attacker to control the data structure being processed by the concatenation logic, resulting in a type confusion condition. This can lead to out-of-bounds memory access, potentially resulting in memory corruption and arbitrary code execution in the context of the QuickJS runtime.
Exploit prediction scoring system (EPSS) score
EPSS Score 0.0
EPSS Ranking 8.7%
CVSS Severity
CVSS v3 Score 8.8
Products affected by CVE-2025-62494
-
cpe:2.3:a:quickjs_project:quickjs:-
-
cpe:2.3:a:quickjs_project:quickjs:2019-07-09
-
cpe:2.3:a:quickjs_project:quickjs:2019-07-21
-
cpe:2.3:a:quickjs_project:quickjs:2019-07-28
-
cpe:2.3:a:quickjs_project:quickjs:2019-08-10
-
cpe:2.3:a:quickjs_project:quickjs:2019-08-18
-
cpe:2.3:a:quickjs_project:quickjs:2019-09-01
-
cpe:2.3:a:quickjs_project:quickjs:2019-09-18
-
cpe:2.3:a:quickjs_project:quickjs:2019-10-27
-
cpe:2.3:a:quickjs_project:quickjs:2019-12-21
-
cpe:2.3:a:quickjs_project:quickjs:2020-01-05
-
cpe:2.3:a:quickjs_project:quickjs:2020-01-19
-
cpe:2.3:a:quickjs_project:quickjs:2020-03-16
-
cpe:2.3:a:quickjs_project:quickjs:2020-04-12
-
cpe:2.3:a:quickjs_project:quickjs:2020-07-05
-
cpe:2.3:a:quickjs_project:quickjs:2020-09-06
-
cpe:2.3:a:quickjs_project:quickjs:2020-11-08
-
cpe:2.3:a:quickjs_project:quickjs:2021-03-27
-
cpe:2.3:a:quickjs_project:quickjs:2022-03-06
-
cpe:2.3:a:quickjs_project:quickjs:2023-12-09
-
cpe:2.3:a:quickjs_project:quickjs:2024-01-13