CVE-2025-62494 Details
Description
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.
A type confusion vulnerability has been identified in the QuickJS engine, specifically in the string addition operation. This vulnerability arises because the code improperly handles type conversions, allowing an attacker to manipulate the type of a string operand in memory. The issue occurs when the left-hand operand, initially a string, is altered during the conversion of the right-hand operand to a primitive value. This manipulation creates a mismatch between the expected and actual data types, leading to a type confusion condition. Consequently, the concatenation operation can be exploited to access memory out-of-bounds, potentially causing memory corruption and allowing arbitrary code execution within the QuickJS runtime.
Users are advised to update to the QuickJS version released on September 13, 2025, which addresses this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 16, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://bellard.org/quickjs/Changelog | [email protected] | Release Notes |
| https://issuetracker.google.com/434193023 | [email protected] | ExploitIssue Tracking |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-704 | Incorrect Type Conversion or Cast | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| quickjs project quickjs | < 2025-09-13 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 29, 2025 | Initial Analysis | [email protected] |
| Oct 16, 2025 | New CVE Received | [email protected] |