{"id":71826,"date":"2025-10-16T19:45:39","date_gmt":"2025-10-16T16:15:39","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-62494-type-confusion-in-string-addition-in-quickjs\/"},"modified":"2025-10-16T19:45:39","modified_gmt":"2025-10-16T16:15:39","slug":"cve-2025-62494-type-confusion-in-string-addition-in-quickjs","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-62494-type-confusion-in-string-addition-in-quickjs\/","title":{"rendered":"CVE-2025-62494 &#8211; Type confusion in string addition in QuickJS"},"content":{"rendered":"<p>CVE ID : CVE-2025-62494<\/p>\n<p>Published :  Oct. 16, 2025, 4:15 p.m. | 25\u00a0minutes ago<\/p>\n<p>Description : A type confusion vulnerability exists in the handling of the string addition (+) operation within the QuickJS engine.<\/p>\n<p>  *  The code first checks if the left-hand operand is a string.<\/p>\n<p>  *  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).<\/p>\n<p>  *  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).<\/p>\n<p>  *  The code then proceeds to call JS_ConcatStringInPlace, which still treats the modified left-hand value as a string.<\/p>\n<p>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.<\/p>\n<p>Severity: 7.1 | HIGH<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2025-62494 Published : Oct. 16, 2025, 4:15 p.m. | 25\u00a0minutes ago 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 &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-71826","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71826","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=71826"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71826\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71826"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71826"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71826"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}