{"id":"CVE-2025-62491","published":"2025-10-16T15:51:24Z","modified":"2025-10-16T18:04:16Z","title":"Use-after-free in js_std_promise_rejection_check in QuickJS","vendor":"QuickJS","product":"QuickJS","tier":"tail","description":{"text":"A Use-After-Free (UAF) vulnerability exists in the QuickJS engine's standard library when iterating over the global list of unhandled rejected promises (ts->rejected_promise_list).\n\n  *  The function js_std_promise_rejection_check attempts to iterate over the rejected_promise_list to report unhandled rejections using a standard list loop.\n\n\n  *  The reason for a promise rejection is processed inside the loop, including calling js_std_dump_error1(ctx, rp->reason).\n\n\n  *  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.\n\n\n  *  The malicious custom getter can execute JavaScript code that calls catch() on the same rejected promise being processed.\n\n\n  *  Calling catch() internally triggers js_std_promise_rejection_tracker, which then removes and frees the current promise entry (JSRejectedPromiseEntry) from the rejected_promise_list.\n\n\n  *  Since the list iteration continues using the now-freed memory pointer (el), the subsequent loop access results in a Use-After-Free condition.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:A/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:L/SC:H/SI:H/SA:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00373,"percentile":0.23191,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"}],"references":[{"url":"https://bellard.org/quickjs/Changelog","tags":[]},{"url":"https://issuetracker.google.com/434195203","tags":[]}],"priority":{"score":10.8,"factors":[{"name":"EPSS percentile","points":4.64},{"name":"CVSS severity","points":6.16}]},"vendorSlug":"quickjs","affectedVersions":[{"vendor":"QuickJS","product":"QuickJS","versions":[">= 2025-04-26, < 2025-09-13"]}],"capec":[{"id":"CAPEC-175","name":"Code Inclusion"}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-10-16T18:03:58.190903Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2025-34783","exploited":false,"provenance":"source"}}