{"id":71829,"date":"2025-10-16T19:45:39","date_gmt":"2025-10-16T16:15:39","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2025-62491-use-after-free-in-js_std_promise_rejection_check-in-quickjs\/"},"modified":"2025-10-16T19:45:39","modified_gmt":"2025-10-16T16:15:39","slug":"cve-2025-62491-use-after-free-in-js_std_promise_rejection_check-in-quickjs","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2025-62491-use-after-free-in-js_std_promise_rejection_check-in-quickjs\/","title":{"rendered":"CVE-2025-62491 &#8211; Use-after-free in js_std_promise_rejection_check in QuickJS"},"content":{"rendered":"<p>CVE ID : CVE-2025-62491<\/p>\n<p>Published :  Oct. 16, 2025, 4:15 p.m. | 25\u00a0minutes ago<\/p>\n<p>Description : A Use-After-Free (UAF) vulnerability exists in the QuickJS engine&#8217;s standard library when iterating over the global list of unhandled rejected promises (ts-&gt;rejected_promise_list).<\/p>\n<p>  *  The function js_std_promise_rejection_check attempts to iterate over the rejected_promise_list to report unhandled rejections using a standard list loop.<\/p>\n<p>  *  The reason for a promise rejection is processed inside the loop, including calling js_std_dump_error1(ctx, rp-&gt;reason).<\/p>\n<p>  *  If the promise rejection reason is an Error object that defines a custom property getter (e.g., via Object.defineProperty), this getter is executed during the error dumping process.<\/p>\n<p>  *  The malicious custom getter can execute JavaScript code that calls catch() on the same rejected promise being processed.<\/p>\n<p>  *  Calling catch() internally triggers js_std_promise_rejection_tracker, which then removes and frees the current promise entry (JSRejectedPromiseEntry) from the rejected_promise_list.<\/p>\n<p>  *  Since the list iteration continues using the now-freed memory pointer (el), the subsequent loop access results in a Use-After-Free condition.<\/p>\n<p>Severity: 8.8 | 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-62491 Published : Oct. 16, 2025, 4:15 p.m. | 25\u00a0minutes ago Description : A Use-After-Free (UAF) vulnerability exists in the QuickJS engine&#8217;s standard library when iterating over the global list of unhandled rejected promises (ts-&gt;rejected_promise_list). * The function js_std_promise_rejection_check attempts to iterate over the rejected_promise_list to report unhandled rejections using a standard &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-71829","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71829","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=71829"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/71829\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=71829"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=71829"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=71829"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}