CVE-2025-62491

Source
https://cve.org/CVERecord?id=CVE-2025-62491
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62491.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-62491
Downstream
Published
2025-10-16T16:15:39.470Z
Modified
2026-04-10T05:33:05.843252Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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->rejectedpromiselist).

  • The function jsstdpromiserejectioncheck attempts to iterate over the rejectedpromiselist to report unhandled rejections using a standard list loop.

  • The reason for a promise rejection is processed inside the loop, including calling jsstddump_error1(ctx, rp->reason).

  • 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.

  • The malicious custom getter can execute JavaScript code that calls catch() on the same rejected promise being processed.

  • Calling catch() internally triggers jsstdpromiserejectiontracker, which then removes and frees the current promise entry (JSRejectedPromiseEntry) from the rejectedpromiselist.

  • Since the list iteration continues using the now-freed memory pointer (el), the subsequent loop access results in a Use-After-Free condition.

References

Affected packages

Git /

Affected ranges

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-62491.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "fixed": "2025-09-13"
            }
        ]
    }
]